Re: sftp2 manually ok but not in a script
Mike Erdely <[email protected]> Thu, 22 Feb 2007 10:00:01 -0500
| Newsgroups | gmane.network.ssh.windows |
|---|---|
| Message-ID | <[email protected]> |
dobbie1 wrote:
> In a script running for some months in a Sun 250R running Solaring 2.6,
> I have the following commands:
> #!/bin/csh -f
> set COPYCMD="/usr/bin/sftp2 -B"
> set COPYPATH=rissna@marvin
> $COPYCMD sftp1 $COPYPATH >& aa
>
> sftp1 contains:
> cd in
> put neatexp
> exit
Why wouldn't you use:
scp2 in/neatexp rissna@marvin:
You should probably use an absolute path: ${PATHTO}/in/neatexp
-ME
--
List Info: http://erdelynet.com/ssh-l/
List Archives: http://erdelynet.com/archive/ssh-l/
To Unsubscribe: Mail mailto:[email protected]