[NTLUG:Discuss] OT: Why does remote command over ssh not return control?

Jerome Haltom wasabi at larvalstage.net
Tue Jun 5 09:12:02 CDT 2007


If the script spawns a background process without disowning it, that
would do it.

On Tue, 2007-06-05 at 08:46 -0500, Fred James wrote:
> Dennis Daupert wrote:
> 
> >I'm running remote scripts over ssh as cron jobs. The script invocation is simply:
> >
> >ssh hostname scriptname  (where scriptname is in path of user)
> >
> >Most of the scripts run fine, but one particular one -- the most important one, of course -- hangs at the end, and never lets the ssh session go. 
> >
> >Does this sound familiar to anyone? The script in question is propriatary, so I can't post it, but if the gory details are needed, I could change some of the names to protect the innocent.
> >
> >Baffled again,
> >
> >/dennis
> >  
> >
> Dennis Daupert
> I am clueless, actually, but the first things I might look for would be 
> (a) does the script exit? and (b) is the script waiting for some input?  
> Can you put some debugging lines in the script, say to print to a file 
> (place markers, variable values, whatever) that could be read after the 
> event?
> Hope that helps
> Regards
> Fred James
> 
> 
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss




More information about the Discuss mailing list