Hi guys,
I need a script to do the following process in Redhat Linux 7.3 :
1) Check to see if /var/temp/ contain *.bin files
2) if no, abort the script. Else, goto step 3
3) Start ftp to www.abc.com server.
4) if unable to connect to www.abc.com server, abort the script. Else, proceed to step 5
5) ftp each .bin files in /var/temp to www.abc.com server then move it the /var/temp/backup/ directory one by one
6) close connection
Pls help, thanks !
I need a script to do the following process in Redhat Linux 7.3 :
1) Check to see if /var/temp/ contain *.bin files
2) if no, abort the script. Else, goto step 3
3) Start ftp to www.abc.com server.
4) if unable to connect to www.abc.com server, abort the script. Else, proceed to step 5
5) ftp each .bin files in /var/temp to www.abc.com server then move it the /var/temp/backup/ directory one by one
6) close connection
Pls help, thanks !