in reply to Automatic scp

From looking at the scp and the ssh man pages - you get it via your shell by typing man 1 scp there is the hint that the -f option does not ask for passwords (and also leaves no ssh window open). scp has the -o command line option that allows to deliver options to ssh. So you have to try that. If you don't have success with that, you could try either open scp for writing and try to write the password to scp, but I've never done this myself. The thing I'd try would be

open SCP, "| scp -o -l $filename $user\@$host:$target"; print SCP, $password; # now pray that scp does its magic ...

Replies are listed 'Best First'.
RE: Re: Automatic scp
by ivey (Beadle) on Jun 06, 2000 at 06:55 UTC
    A quick test with OpenSSH shows this to work, using
    scp -B $file $user\@$host:$target
    The -B on OpenSSH is equiv to your -f