sub copyover { $scp=Expect->spawn("/usr/bin/scp ${srcpath}/$file $who:${destpath} +/$file"); $scp->expect(30,"ssword: ") || die "Never got password prompt from + $dest:$!\n"; print $scp 'password' . "\n"; $scp->expect(30,"-re",'$\s') || die "Never got prompt from parent +system:$!\n"; $scp->soft_close(); return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: expect w/scp
by tadman (Prior) on Mar 23, 2001 at 06:14 UTC | |
|
Re (tilly) 1: expect w/scp
by tilly (Archbishop) on Mar 23, 2001 at 07:49 UTC |