[wplug] crontab problems
redtoade
redtoade at gmail.com
Wed Feb 9 14:40:41 EST 2005
References:
http://www.unixgeeks.org/security/newbie/unix/cron-1.html
man 5 crontab
Ways to rule out the obvious:
1. run the script as the user by hand. (However from the looks of it
you know that the script already works.)
2. in the crontab, dump the output to a text file.
* 9-16 * * 1-5 /home/chris/script.sh >> logfile.txt 2>&1
3. cron has an entry in /var/log
Perhaps not helpful in and of itself, but if you're SURE you've done
those things, it'll keep you from spinning your wheels.
On Wed, 9 Feb 2005 14:17:39 -0500, Chris Romano <romano.chris at gmail.com> wrote:
> First:
> Slack 10
> Dillion's Cron
>
> I have a script that I want to run every minut from 9 am to 4 pm
> Monday - Friday. So I figure the best thing to do is us cron ...
> that's what it's for.
>
> so
> chris at mail:~$ crontab -e
>
> * 9-16 * * Mon-Fri /home/chris/script.sh
>
> chris at mail:~$
>
> Ok so I wait ... and nothing. The script from what I can tell does
> not run. I have done the same for root's crontab and it work perfect.
>
> # cat /var/spool/cron/crontabs/chris
> * 9-16 * * Mon-Fri /home/chris/script.sh
> #
>
> $ ls -l script.sh
> -rwxr-xr-x 1 chris users 45 2005-02-07 13:56 script.sh
>
> Is my syntax wrong, or did I miss something? From the man pages and
> google it looks good to me.
>
> Thanks,
> Chris
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
More information about the wplug
mailing list