crontab
hello sir...
i schedule my job on crontab but it is not running > why ? my crontab like this. 05 * * * * /db/app/test.sh here i have few question. 1. if cronjob is fail where i see result... mean every cronjob send email. where i check. 2. i already check.... /usr/lib/ .... here no cron folder or not cron file.. actully i search cron.allow.... cron.deny... plz. help.... |
cron will call syslog to report stats of cron jobs. Where syslog puts the messages depends on your exact setup. For me, cron status log messages go in /var/log/syslog, but you might have a cron specific logfile in your /var/log directory.
Often, cron will send a local email to the root user with cron errors. You'll only see this if you have local mail delivery configured so you get mails for root. The quick-and-dirty method for seeing error messages would be to change the crontab line to: Code:
05 * * * * /db/app/test.sh > /tmp/mycronlog 2>&1 General hint about cron problems: it's almost always because of the environment settings in general, the PATH variable in particular. When cron launches a job, it does so with a very restricted environment, as defined in the /etc/crontab file. |
Make sure that the file you want executed has the correct "execute" permission.
chmod +x test.sh |
sir i give only like
chmod 755 test.sh it is right or wrong. or i want to give chmod +x test.sh premission... plz. sir help me... |
Quote:
|
hi,
first u have to #/etc/filename.cron. then 05 * * * * /db/app/test.sh save it . #crontab filename.cron to check whether cronjob is running or not type crontab -l. that's it!! |
hello sir thank for your reply
but #/etc/filename.cron. sir which filename.cron... crontab -l just show only content of file not status... plz sir help me.. |
u can give any filename...
/etc/backup.cron....this will create backup.cron file.. its very simple.. i too think this is hard ...but try u will get succeed all the best |
All times are GMT -5. The time now is 09:33 PM. |