Why crontab is not able to run some commands ?

Duane Hill d.hill at yournetplus.com
Fri May 11 19:45:23 UTC 2007


On Fri, 11 May 2007, Paul Schmehl wrote:

>
> Then try running this in your cron job:
> /bin/sh /etc/scriptfile
>
> Bet it does work.  :-)

Yes, but if the OP has:

#!/bin/sh

as the first line, the file owned by root and the executable flag for user 
set, shouldn't it execute from cron as just:

/etc/scriptfile

??


More information about the freebsd-questions mailing list