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

Fred James fredjame at fredjame.cnc.net
Tue Jun 5 08:46:56 CDT 2007


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




More information about the Discuss mailing list