Quote:
Originally Posted by zaxxon
If $SESSIONLOG was empty or had nonsense inside, cat would tell something like "file not found".
You should also write stderr out to your log like:
Code:
sftp -b $SCRIPT $DESTUSERNAME@$DESTHOSTNAME > $SESSIONLOG 2>&1
If it is still empty, maybe put a -v for verboste to the sftp.
|
Thats correct Zaxxon.
Adding
sftp -b $SCRIPT $DESTUSERNAME@$DESTHOSTNAME > $SESSIONLOG 2>&1
did the trick....thanks a lot guys