Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Completely baffled as to why Cron job is not working



Dave M G wrote:
> Okay, so obviously the first assumption is that the script is probably
> not running the command correctly. So I try running the script from
> the command line, and it works perfectly.
>
> So I'm baffled. Why would a script that runs perfectly from the
> command line not complete its task when executed from cron?

Because the environment cron is running it in is different.  The PATH
and other environment settings are usually minimal fro cron so you may
need to set them explicitly or provide the full path for executables in
your script.

Edward


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links