command does not return

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

My environnement is Debian Etch, and the version of ssh  is 4.3p2.

I wrote a command <mycommand> that starts a python program. This
program calls a blocking method on a gamin monitor that waits for file
system changes (new files, for exemple).

I had to launch this python program (in mycommand) with "nohup" and
"&" at the end of the line because if not, mycommand is blocked.

Then when I enter the distant machine by writing only 'ssh <ip>' and
after connection, <mycommand> + ENTER, it returns correctly (I can
continue to write thing without to have to do crtl+c).

But when I launch the command like this : 'ssh <ip> <mycommand>', it
doesn't return.
It is blocked and I have to do ctrl+c to unblock. Furthermore, the
python program is correctly running on the distant machine.

Do you have any idea why 'ssh <ip> <mycommand>' is blocked ?

[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux