Unix questions - command does not work when run in cron

This is Interesting: Free IT Magazines  
Home > Archive > Unix questions > August 2006 > command does not work when run in cron





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author command does not work when run in cron
hanu

2006-08-10, 1:33 pm

Hi,
I had a job which runs daily through cron and it was working fine until
few days ago.
But it is not working now, the job keeps hanging when run through cron.
when i run the command manually it runs fine. The script in the command
has not changed since many months.
What are the probable reasons which might be causing a problem.
Thanks.

Pascal Bourguignon

2006-08-10, 1:33 pm

"hanu" <linarayan@hotmail.com> writes:
> I had a job which runs daily through cron and it was working fine until
> few days ago.
> But it is not working now, the job keeps hanging when run through cron.
> when i run the command manually it runs fine. The script in the command
> has not changed since many months.
> What are the probable reasons which might be causing a problem.


The environment in cron is not necessarily the same as in your
interactive shell. (That is, it's probably not the same).

For example, PATH might be different, so if you invoke the command
without an absolute path, you may run another program or not find it
at all.

--
__Pascal Bourguignon__ http://www.informatimago.com/

Nobody can fix the economy. Nobody can be trusted with their finger
on the button. Nobody's perfect. VOTE FOR NOBODY.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com