Computing.Net > Forums > Unix > FTP Script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to get for your free account now!

FTP Script

Reply to Message Icon

Name: Ishmael Diale
Date: September 6, 2002 at 09:16:10 Pacific
OS: HP-UX
CPU/Ram: HP11
Comment:

How can I write a unix script to ftp file from one machine to the other but exclude file already being transferred. The script runs under cron and only transfer new files.



Report Offensive Message For Removal

Sponsored Link
Ads by Google

Response Number 1
Name: eddie chan
Date: September 6, 2002 at 12:51:29 Pacific
Reply:

how to ftp file from a ftp site, by using shell script


Report Offensive Follow Up For Removal

Response Number 2
Name: ishmael
Date: September 9, 2002 at 00:32:28 Pacific
Reply:

I wrote the following script to ftp files from machineA to machineB.
#!/usr/bin/sh
{ echo "open machineB
user login password
hash
cd /directory/
mget *
close"
} | ftp -i -n -v 2>&1 | tee /tmp/ftplog

How do I make the script copy new files and exclude files I have already copied.


Report Offensive Follow Up For Removal
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: FTP Script

ftp script issue www.computing.net/answers/unix/ftp-script-issue/6675.html

UNIX FTP Scripting www.computing.net/answers/unix/unix-ftp-scripting/5999.html

adding date to ftp script...urgent www.computing.net/answers/unix/adding-date-to-ftp-scripturgent/5355.html