[Ssh-sftp-perl-users] How to execute ssh command in background ?
Brought to you by:
dbrobins
From: Jean-Paul Le F. <le...@he...> - 2004-03-11 10:03:57
|
ssh(1) provides the option -f used to request execution in background. I would like to have this possibility with Net::SSH::Perl. I need a perl script to launch the same command on several remote hosts, something like : foreach $host (@grid) $ssh->cmd($my_command); However, doing so, the script stays blocked on the first step and does not process the next items in the list. I've tried to add '&' in various places but unsuccessfully. P.S. my_command is rmiregistry. -- ___________________________________________________________________ Jean-Paul Le Fèvre * Mail : Le...@fo... |