[Malvern] Crontab help

Colin Newell colin.newell at gmail.com
Tue Jul 11 09:11:35 BST 2006


Hi,

Did you specify the full paths in the script?  The path setup in cron
is usually different to the one set in your user profile.  The other
weird one if you don't have a blank line at the end of your script.


Colin.

On 7/11/06, Andy Dixon <andy at andydixon.com> wrote:
> Hi all,
>
> I have written a couple of scripts to handle spam. One is a shell script to
> pass spam to sa-learn, and the other one reports it to spamcop.
>
> When I had 'php -f scriptname.php' in my crontab, it worked fine. Now that I
> have written a bash script which runs the sa-learn commands and then invokes
> my php script, that does not seem to run.
>
> If I call the script, it works a treat on the commandline. In the cron, it
> does not seem to call at all.
>
> The scripts are in my search path, and I just cant figure it out! Any ideas?
>
> Thanks
>
> Andy
>
>
> _______________________________________________
> Malvern mailing list
> Malvern at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/malvern
>
>
>



More information about the Malvern mailing list