check file existence on remote serv
|
Original Message
|
Name: walterja
Date: November 14, 2005 at 11:59:50 Pacific
Subject: check file existence on remote servOS: XPCPU/Ram: 256 |
Comment: Hello I have a shell script that runs 5 times a day and ftps to a remote server...i only want it to ftp if $FILE exists on the remote server...here is the script..please help ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD bin get $FILE rename export.prn export.prn.$TIMESTAMP !cat export.current.prn export.prn > export.new !mv export.new export.current.prn !rm export.prn quit END_SCRIPT exit 0
Report Offensive Message For Removal
|
Use following form to reply to current message: