Cron Job not working
Hello All,
I am using REDHAT Linux and I am just learning Linux I created a cron job to run at specific time everything seems alright initially until I checked the /var/log/cron. Below are my observations Code:
linux>ps -A | grep cron Thanks |
Quote:
|
maybe its not finding where the executables are... that is usually fixed by putting the whole /path/to/filename in the scripts.
|
you should always remember, cron has its own environment, so you would need to use full path to your executables also you would need to collect info (stdout, stderr) to be able to find out what's happening (for example):
* * * * * /full/path/to/app args >/full/path/to/log/stdout 2>/full/path/to/log/stderr |
All times are GMT -5. The time now is 05:30 AM. |