Re: what differences to run a shell script from command line and from crontab?

From: Feng Qiu (feng.qiu@bms.com)
Date: Wed Oct 26 2005 - 15:29:07 EDT


Thank you all for so many responses.
Every one point out the env variables. But I am not sure that is the
case in here. I got no errors, just the process which is a perl script
never started. In the shell script, I used all full path for where is
the perl script, something like:
/indra/bin/perl-script-name.pl\&
unless I need to define the perl env in the shell script again.
I actually use mail command in the script to send me a mail after start
the perl script. I received mail OK, but just the perl script never
started in the cron job.
Thanks.
Feng

Feng Qiu wrote:

> Dear all,
> I wrote a very simple shell script which use ps and grep command to
> check if a process (a running job) is still exist. If yes, do nothing.
> If not, start that process.
> If I execute the script in command line, everything went as what I
> expected. But if it is executed from crontab, the process didn't start
> as what I expected.
> Anyone has suggestions?
> Thanks.
> Feng
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:33:47 EDT