Re: sftp2 manually ok but not in a script

From: Mike Erdely <mike_at_**********.***>
Date: Thu Feb 22 2007 - 10:00:01 EST

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:ssh+unsubscribe@erdelynet.com
Received on Thu, 22 Feb 2007 10:00:01 -0500

This archive was generated by hypermail 2.1.8 : Thu Feb 22 2007 - 22:54:13 EST