Re: Cron job not working
- From: Ukfsn <hello@xxxxxxxxxxxxxx>
- Date: Thu, 16 Aug 2007 21:58:50 +0100
Vilmos Soti wrote:
Starrena <starr.corbin@xxxxxxxxx> writes:
On Aug 15, 4:27 pm, Starrena <starr.cor...@xxxxxxxxx> wrote:
I do a crontab -e and write:
0 0 1,15 * root /v/filename.sh > /tmp/directory/logfile.txt
Check out crontab(5). I don't think you need the "root" directive.
Crontab(5) mentions that it exists only in /etc/crontab but not in
the other cron files.
0 0 1,15 * * root /v/filename.sh > /tmp/directory/logfile.txt
OK.
Vilmos
You can include the following comments at the beginning of your crontab
jobs. It will help you to remember the format and the meaning of each
field :
# minute (0-59),
# | hour (0-23),
# | | day of the month (1-31),
# | | | month of the year (1-12),
# | | | | day of the week (0-6 with 0=Sunday).
# | | | | | commands
0 0 1,15 * * /v/filename.sh > /tmp/directory/logfile.txt
If your script needs to be executed with root rights make it owned by root
and give it suid bit. Or put it as a cron job of root itself.
.
- Follow-Ups:
- Re: Cron job not working
- From: Vilmos Soti
- Re: Cron job not working
- From: Chris Davies
- Re: Cron job not working
- References:
- Cron job not working
- From: Starrena
- Re: Cron job not working
- From: Starrena
- Re: Cron job not working
- From: Vilmos Soti
- Cron job not working
- Prev by Date: Re: wvdial problems
- Next by Date: Re: flood/spammer's new tactics
- Previous by thread: Re: Cron job not working
- Next by thread: Re: Cron job not working
- Index(es):
Relevant Pages
|