The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Log File Writing and Reading
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Log File Writing and Reading
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
11-25-2008
zaxxon
Moderator
Join Date: Sep 2007
Location: Germany
Posts: 2,296
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.
zaxxon
View Public Profile
Find all posts by zaxxon
Find zaxxon's past nominations received
Find zaxxon's present nominations given