spawned '/usr/bin/ssh x.x.x.x' spawn id(3) Pid: 3399 Tty: /dev/pts/1 Expect::spawn('Expect', '/usr/bin/ssh x.x.x.x') called at test.pl line 4 Closing spawn id(3). Expect::hard_close('Expect=GLOB(0x82ba93c)') called at /usr/lib/perl5/site_perl/5.8.4/Expect.pm line 1575 Expect::DESTROY('Expect=GLOB(0x82ba93c)') called at test.pl line 0 eval {...} called at test.pl line 0 spawn id(3) closed. Pid 3399 of spawn id(3) terminated, Status: 0x01