Date: | Tue, 16 Jun 2009 14:53:16 +0200 |
To: | bug-Net-SSH-Perl [...] rt.cpan.org |
From: | dr.g.b [...] gmx.de |
Hello,
I use
=> Perl v5.8.8 built for i486-linux-gnu-thread-multi
=> Net::SSH::Perl Version 1.30
to control a remote computer which works pretty good.
But there is one scenario the module is not able to deal with:
the program started with
$ssh->cmd('program');
generates a child process and terminates. The child repeats a specific task in an endless loop until it is terminated using kill.
pid = fork();
if(pid>0) {
while(1) {
...
}
} else
if(pid==0) {
exit(0);
}
else {
...
}
My problem is, that the call to $ssh->cmd('program') does not return until the child is terminated and not as I would expect when the father process exits.
Your help would be appreciated
dr
--
GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss
für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02