Compatible Support Forums: IF Statements within an FTP Session

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

IF Statements within an FTP Session

#1 User is offline   mccrack_2003 

  • stranger
  • Group: Members
  • Posts: 8
  • Joined: 20-November 03

Posted 12 January 2004 - 02:13 PM

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
0

#2 User is offline   mccrack_2003 

  • stranger
  • Group: Members
  • Posts: 8
  • Joined: 20-November 03

Posted 16 January 2004 - 03:43 PM

Any input ?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users