Re: sftp2 manually ok but not in a script

dobbie1 <[email protected]> Wed, 28 Feb 2007 23:25:54 +0100
Newsgroups gmane.network.ssh.windows
Message-ID <[email protected]>
Hello again,

Today I checked the script log. sftp2 works OK now.

Thank you for your reply.

Regards,

Marek

Mike Erdely skrev:
> 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]
>
>
>

--
List Info:      http://erdelynet.com/ssh-l/
List Archives:  http://erdelynet.com/archive/ssh-l/
To Unsubscribe: Mail mailto:[email protected]