in reply to How to execute Net::OpenSSH remote command requiring input
Though, I don't think that will solve your problem... the Expect approach seems more promising!$ssh = Net::OpenSSH->new($hostname, user => $username, master_stderr_d +iscard => 1} $command = "cd /usr/local/bin; interactive_program.pl"; @out = $ssh->capture({stdin_data => "input1\ninput2\ninput3\n"}, $comm +and);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to execute Net::OpenSSH remote command requiring input
by avonnieda (Novice) on Oct 26, 2009 at 15:55 UTC |