[SunHELP] sftp2 manually ok but not in a script

Marek Grinberg marek.grinberg at tele2.se
Thu Feb 22 07:29:12 CST 2007


Hello,

In a script running for some months I have the following commands:
#!/bin/csh -f
set COPYCMD="/usr/bin/sftp2 -B"
set COPYPATH=rissna at marvin
$COPYCMD sftp1 $COPYPATH >& aa

sftp1 contains:
cd in
put neatexp
exit

The script above fails now, and aa contains:
tcsetattr: Interrupted system call
FATAL: Received signal 1.

When I run sftp2 manually, it works OK.

Any hints ?

Regards,

Marek



More information about the SunHELP mailing list