Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
check file existence on remote serv
Name: walterja Date: November 14, 2005 at 11:59:50 Pacific OS: XP CPU/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
Summary: My script connects to a remote server via ftp command. I would like it to check for the existence of a file while there and possibly send back a (return code) value for my script to check and determi...
Summary: Hi, I want to use Shell Script to check multiple file exists and then execute other tasks, I use the following compound condition, but neither succeed. if [ -e check_fin_bbb.complete ] && [ -e fin_bbb...
Summary: Jason, The find commands below will remove files based on filename pattern and age of datestamp in days. The age check is granular to the current moment. You need write permission on the directory. ...