Good Afternoon Ladies & Gents.
Is it possible to write a script that opens up a ftp session and then use ' if and for loops ' .
ie.
ftp -n -i xxx.xxx.xxx.xxx <<EOF
user username password
binary
if [ -f /home/bob/logs.doc ]
then echo FILE FOUND
else echo FILE NOT FOUND ;
fi
????????
Any input would be greatly appreciated.
Regard
Page 1 of 1
IF Statements within an FTP Session
Share this topic:
Page 1 of 1

Help










