The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-25-2008
valluvan valluvan is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 27
Quote:
Originally Posted by zaxxon View Post
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