Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error log for ftp command

Status
Not open for further replies.

specv

Programmer
Aug 8, 2001
42
CA
Hi all,
I have a script contains this code :

ftp -n <<EOF
open ${serverName}
user ${userId} ${userPassword}
put file.txt /dfs/projects/gdm/batch/result.txt
quit
EOF

Is it possible to put errors in a log file (serverName or userId or password incorrect) ?

Thanks,
Phil
 
ftp -n <<EOF > myLogFile 2>&1

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top