Hi E,
@ 11:35:17 PM on 4/9/2001, E K L wrote:
> I tried to edit the crontab file in this directory /etc to set
> schedule to run some programs.
Are you talking about /etc/cron.allow and /etc/cron.deny?
If cron.allow exists, your login has to be there. If cron.deny exists,
your login must not be in there.
To add a cronjob, you need to use:
shell> crontab -e
Instead of editing the files directly.
> But, i failed to do so as the schedule doesn't work. I'm asking if
> anybody can help me to solve the problem. Below are the information:
cron should be logging to a file somewhere. Locate that file and check
it out.
> command written:
> 10 11 * * * root lynx -dump http://192.168.0.1/try1.php
What is 'root' in the above for? It may be different on different
systems, but this is typically the format:
# minute hour mday month wday command
And at the top, the PATH should be set. Either a) lynx has to be
somewhere within your $PATH, or b) you must give the full path to
lynx.
> and i have this in mailbox when the scheduling failed: your terminal
> lacks the ability to clear the screen or position the cursor
Try:
[all on one line]
/path/to/lynx -dump http://192.168.0.1/try1.php > /full/path/to/output.txt
[/all on one line]
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please do not carbon copy me on list replies.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]