Jump to content
Compatible Support Forums
Sign in to follow this  
mccrack_2003

IF Statements within an FTP Session

Recommended Posts

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

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×