Mailing List Archive

[Bug 334] SSH hangs when run via a cronjob (ssh2)
http://bugzilla.mindrot.org/show_bug.cgi?id=334

egarff@omniture.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |



------- Additional Comments From egarff@omniture.com 2003-07-09 08:00 -------
I apologize I didn't not see the request for more testing.

We have tried this very recently with 3.6.1p2 and see the same issue.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 334] SSH hangs when run via a cronjob (ssh2) [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=334





------- Additional Comments From dtucker@zip.com.au 2003-07-09 10:15 -------
Does the same thing happen if you run from the command line with nohup?

You can also use strace/truss or equivalent to see what it's trying to do when
it hangs. Make sure the cron job will take a while (add some sleeps if you have
to) then wait until the cron job starts, find out ssh's pid and use "strace -p
[pid]" to attach to the process. Once you have the results, add the last 100
lines or so as an attachment to this bug.

Also, the commands at the other end of the pipe might behave differently when
they don't have a pty. Try adding "-t" to ssh's command line to force the
server to allocate one.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.