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.
FTP Rename using wildcards
Name: Scott Date: October 7, 2003 at 13:02:06 Pacific OS: AIX CPU/Ram: ?
Comment:
Hello! I need to write a script that will ftp some files from an NT server down to a Unix server. Once the files have been ftp'd, I need to rename the extension of the files to .bak on the NT server. The ftp rename command does not allow wildcards, and I don't know the names of the files other than they all end in .rpt. Can anyone shed some light on how to go about doing this? My thoughts were to ftp to a special directory, do an ls >> filelist, and somehow rename using the names in $filelist. Am I on the right track, or is there an easier way?
Summary: I want to do ftp by using shell script, presently it is working. but I want to do ftp -n -i password mput etc.. as a single line command I do not want to on next line... ...
Summary: Hi All, I tried to an automated FTP session using an expect script from a Sun Box to a NT Server (IIS running) 1. ftp session establish 2. put the file with a diffrent extension (eg. filename.000...
Summary: here's something more... If all u want to do is transfer files from/to the PC to the Irix...then u can ftp FROM the PC to the Irix box and ftp files. Using TP, u can transfer files both ways..just use...