[Ssh-sftp-perl-users] Confirmation neede by a script.
Brought to you by:
dbrobins
From: Christophe C. <chr...@un...> - 2006-03-24 17:19:08
|
Hi =20 Now, I can connet to my host with my perl script (and Net::ssh::perl). I can also execute a script. =20 My script looks like this =20 my $ssh =3D Net::SSH::Perl->new($host); $ssh->login($user,$pass); my($stdout, $stderr, $exit) =3D $ssh->cmd("mycommand"); =20 But when mycommand is executed, it asks a confirmation. If I execute mycommand locally: # ./mycommand Are you sure you want to proceed? . So, I have to respond yes to this message. How can I respond to that? Is it possible? =20 Thanks =20 |