[ale] cron vs shell

Danny Cox danscox at mindspring.com
Sun Aug 10 13:41:56 EDT 2003


James.

On Sun, 2003-08-10 at 10:12, James P. Kinney III wrote:
> I have a script that runs perfect from a shell prompt. But when I run it
> from cron, it hangs waiting for the first part to finish.
> 
> After setting up some variables and getting a list of names and machines
> to work on, the script uses ssh to run a remote command to stop a
> process, the is scp's the log file from that process to a common
> location. Then it restarts the remote machine.
> 
> It hangs waiting for the process stop to finish when run as a cron job.
> It doesn't when run from the command line. 
> 
> What is the difference between the two environments such that a process
> stop request will never see it end? I have absolute paths for all the
> commands. 

	I've heard of this *type* of problem before.  Nevertheless, you might
look into the -n option.  It redirects stdin to /dev/null.  It may prove
useful in this case.

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list