QUOTE:
原帖由 deathcult 于 2003-6-5 11:52 发表

#!/usr/local/bin/perl

use Expect;

my $timeout = 2;
my $delay = 1;
my $cmd         = "ssh";
my @params = qw/202.108.xx.xx -luser -p22/;
my $pass = "password";

$exp = Expect->;spawn($cmd, @ ...

如果要实现连续的的SSH ,把上面的代码换成:
my @params = qw/$ip  -luser -p22/;

好像不行,请问如何实现参数化的SSH 呢,谢谢