Unrelated (was RE: so-called-hang-on-exit)
Eric Garff
egarff at omniture.com
Thu Aug 8 02:11:15 EST 2002
Sadly, no such luck. I need the output, now when I run it by hand the
script hangs because it doesn't get any output whatsoever. Thanks for
the suggestion all the same.
On Wed, 2002-08-07 at 09:51, Nicolas.Williams at ubsw.com wrote:
>
> Add -n to the ssh command line - see if that fixes it.
>
> Nico
> --
>
> > -----Original Message-----
> > From: Eric Garff [mailto:egarff at omniture.com]
> > Sent: Wednesday, August 07, 2002 11:15 AM
> > To: openssh-unix-dev at mindrot.org
> > Subject: Re: so-called-hang-on-exit
> >
> >
> > That may be, but it only "hangs" when run from cron, if I run it
> > manually it executes fine, could cron be causing the "hang".
> > Also, if I
> > used Protocol 1 it completes normally.
> >
> > On Tue, 2002-08-06 at 18:13, Frank Cusack wrote:
> > > On Tue, Aug 06, 2002 at 02:32:33PM -0600, Eric Garff wrote:
> > > > This isn't an actual reply to any one person, but here is
> > my experience:
> > > >
> > > > I have tested both the patches by Jani Jaakkol and Frank
> > Cusack (Frank's
> > > > I tried both the pty and non-pty changes). I still get
> > the hang, here
> > > > is my setup.
> > > >
> > > > This is entered as a cronjob on one server to run every
> > 15 minutes:
> > > >
> > > > /home/httpd/bin/cache/glb/gTest
> > >>/home/httpd/bin/cache/glb/gTest.log
> > > > 2>>/home/httpd/bin/cache/glb/gTest.log
> > > >
> > > > here are the guts of the script:
> > > > /usr/local/bin/ssh hostname /bin/ls /some/dir | /usr/bin/wc -l ;
> > > > /bin/ls /some/other/dir | /usr/bin/wc -l ; /bin/ls
> > /some/other/dir |
> > > > /usr/bin/wc -l"
> > > >
> > > > The script is actually a php script that does a number of
> > other things
> > > > before it executes the ssh (database to grab hostnames,
> > etc.), but that
> > > > is how the ssh portion pans out. After executing the
> > command it then
> > > > starts a 20 second timer, and if the ssh session is still
> > alive, it
> > > > kills it. Also, if I run the script by hand (not crond)
> > it completes
> > > > just fine (no hang).
> > > >
> > > > Any ideas? Your time is MUCH appreciated.
> > >
> > > You're doing something wrong. Your ssh command is not an example of
> > > the hang-on-exit problem.
> > >
> > > /fc
> > --
> > Eric Garff
> > System Administrator
> > egarff at omniture.com
> > 801.722.0134
> >
> > Omniture
> > http://www.omniture.com
> > "Unique Questions, Precise Answers"
> > _______________________________________________
> > openssh-unix-dev at mindrot.org mailing list
> > http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
> >
>
> Visit our website at http://www.ubswarburg.com
>
> This message contains confidential information and is intended only
> for the individual named. If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail. Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses. The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission. If
> verification is required please request a hard-copy version. This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
--
Eric Garff
System Administrator
egarff at omniture.com
801.722.0134
Omniture
http://www.omniture.com
"Unique Questions, Precise Answers"
More information about the openssh-unix-dev
mailing list