cronjob not working
hi all......
if i execute file: /home/vinay/new it will display date... i have setup a cronjob like this.. crontab -e */1 * * * * /home/vinay/new and it got installed............ i have started crond demon still it is not displaying date on each minute.. can anyone please help me why this is not working........ Thanks in advance......... |
Just as a quick test, I created a test script and installed it using your cron line. It worked correctly. Here's the contents of my script:
Code:
#!/bin/sh |
Quote:
The chronjob probably runs o.k. - you just don't see the output - because there is no terminal. All just guessed not knowing anything about your program "new". |
It looks correct, provided that the file /home/vinay/new have executable permissions. Have you checked if some error message has been sent to your system mail? Or eventually redirect the standard output and the standard error to a file for checking:
Code:
*/1 * * * * /home/vinay/new > /home/vinay/cron.log 2>&1 Code:
Jun 23 16:02:01 linux crond[32620]: (vinay) CMD (/home/vinay/new) |
All times are GMT -5. The time now is 01:57 AM. |