|
|
|
|
![]() ![]() |
Jan 30 2005, 12:19 AM
Post
#11
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 57 Joined: 29-January 05 From: US Member No.: 3,484 |
Pretty interesting, I've never been with a host that lets me use Cron jobs before, and they sound pretty cool. dunno if I'll ever need to use em, but itz still an interesting how-to. Great job!
|
|
|
|
Feb 6 2005, 12:27 AM
Post
#12
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 74 Joined: 21-October 04 From: Connecticut Member No.: 1,870 |
it still doesn't work for me:
my full nightly command (midnight EST): 0 19 * * * /usr/local/bin/php -q /home/gamefaqs/public_html/cron_omgwtflolbbq/daily_purge.php did i forget something? am i supposed to put a "GET" in somewhere? please help! this is really important for my site! thanx in advance |
|
|
|
Feb 19 2005, 12:48 AM
Post
#13
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 69 Joined: 11-October 04 From: Memphis, Tennessee Member No.: 1,664 |
Finally... but I still don't get it.
7 different people tried it and none of them worked. 7 people. and none worked. I'm using the LUE2 source and I need cron jobs to run important parts of it. I need it for something called karma and something called gems, which is the curreny needed to buy certain items I put in the shop. It's pretty interesting; check it out some time. Anyway, I also have a game on there to, which also needs crons to give people experciance points and gold to buy stuff from the game's shop. But yea, if you could help me with it OpaQue, I'd really appreciate it. And I'll let you come to my site anytime you'd like. >_> |
|
|
|
Mar 2 2005, 01:16 AM
Post
#14
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 2-March 05 Member No.: 4,089 |
OK im trying these cron jobs out on my cpanel too and I've gotten mixed messages.
I have a php file that just needs to be processed in order for it to work. So all i would do is type in the address of the php file, and it would start processing log files. I want to do this remotely from my webhost site. So I was told once that i could use CODE #wget http://www.mysite.com/update.php and that would run that page at the time I wanted. But it didn't do anything. Then i saw someone use: CODE get http://www.mysite.com/update.php tried it, nothing happened. so is there a way to just have the cron job access a remote file by the webaddress? The way I have it set up is this. 3 Tasks. Task 1) call on a remote url that is on my home pc to do a log file parse. This is done simply by accessing the php file through any browser, thats it. Task 2) call on a remote url to do a database backup of the database on that server. Now thats the logs are parsed, it updated the database with all the parsed info. Task 3) call on a local file to do a database restore to the mirrored database on the webserver, i.e. make the webserver db match my homepc db. This all works fine if i do it manually. but what command allows the cron job to do it? |
|
|
|
Mar 2 2005, 03:25 AM
Post
#15
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 2-March 05 Member No.: 4,089 |
ok I found it.
CODE /usr/local/bin/GET -C root:pass http://my.ip.add.ress/folder/logs.php?pass=update this does the trick. loads the remote file. |
|
|
|
Mar 2 2005, 03:29 AM
Post
#16
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 2-March 05 Member No.: 4,089 |
QUOTE(DssTrainer @ Mar 1 2005, 10:25 PM) ok I found it. CODE /usr/local/bin/GET -C root:pass http://my.ip.add.ress/folder/logs.php?pass=update this does the trick. loads the remote file. ok nevermind that doesnt work. |
|
|
|
Mar 11 2005, 03:02 PM
Post
#17
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 11-March 05 Member No.: 4,376 |
I am getting this via e-mail about my cron jobs (directory info protected for security reasons;
/home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 1: ?php: No such file or directory /home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 2: /aquota.user: Permission denied /home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 3: mail_digest.php: command not found /home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 4: -------------------: command not found /home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 5: begin: command not found /home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 6: syntax error near unexpected token `(' /home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 6: ` copyright : © 2000 The phpBB Group' Any ideas why? |
|
|
|
Jun 1 2005, 10:45 AM
Post
#18
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 283 Joined: 10-October 04 Member No.: 1,637 |
Wow.. This is very nice tutorial.. very clear, straight and very effective.
i'm noob but follow this tutorial, i can configure cron job successfully this can be old topic but i just wanna express my succeed! thks opaque |
|
|
|
Nov 10 2006, 10:01 AM
Post
#19
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 357 Joined: 8-April 06 Member No.: 21,487 |
dear shyam Corn is in your cpanel ?
and you can Manage the script with corn to run for example counter Dear Seņor Maniac corn is working for all trap17 members , but you must active corn first |
|
|
|