Leslie
09-04-02, 06:47
| Hi, I have written an automated FTP script for mput (ie. to put many files from a local to a remote host). However, I will only know the remote directory during run-time. # Check for condition. If condition A $1 = A elseif condition B $1 = B elseif condition C $1 = C else $1 = D endif # FTP Scripts ftp -n -v -i servername > Logfile < user username password lcd local_directory cd $1 ascii mput * quit EOF The script works fine except that my files were ftp to the root of the reomote host rather than the remote directory, $1 It seems that $1 did not take the value of the If condition statement above. Can I pass in the value of $1 from the condition script to the FTP script ?? Thank You. |