Script goes to the remote server and launches the shell script "snap.sh" using Net :: SSH :: Perl. This shell script takes almost 10 minutes, and my perl program waits until it exits. I want to run a shell script on a remote server, and the program must close the SSH session without waiting for the script to finish on the remote server.
my $ssh = Net::SSH::Perl->new($host, protocol =>2); $ssh->login($username, $password); my $cmd="./bin/snap.sh"; my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
Xomo source share