Use the Expect scripting langauge. It was designed for scripting interactive processes. Learn more at: http://expect.nist.gov/
Dave V.
you could do it with NET::SSH::PERL ( Perl Modules)
here is that part that matters.
my $ssh = Net::SSH::Perl->new($host, options => [ "use_pty 0", "debug true"]);
$ssh->login($user, $pass);
my ($stdout, $stderr, $exit) = $ssh->cmd($command, [$stdin]);
you could have it run a shell script on the targe machine that would do all of the work
Ivan
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list