[ale] cron vs shell
James P. Kinney III
jkinney at localnetsolutions.com
Sun Aug 10 13:53:44 EDT 2003
Is this a cron or shell option?
On Sun, 2003-08-10 at 13:41, Danny Cox wrote:
> 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.
--
James P. Kinney III \Changing the mobile computing world/
CEO & Director of Engineering \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
This is a digitally signed message part
More information about the Ale
mailing list