that worked fine. But on the same line if I want to transfer the last file of the directory, like from this directory:
in this case just the :
what could I be using
i would be grateful if someone could supply me with a shell script which performed a ftp but only retrieved files which had a created date greater than a specific date - is this possible with ftp?
many thanks
mc (1 Reply)
Hi ,
I need some help to finish my ftp script and i need to find the last one weeks of fles updated in the sepecific directory and see those end with Z and ftp them to my backup server. Any help is appreciated.
Thanks,
Ravi :) (1 Reply)
Hi ,
I need some help to finish my ftp script and i need to find the last one weeks of fles updated in the sepecific directory and see those end with Z and ftp them to my backup server. Any help is appreciated.
Thanks,
Ravi :) (1 Reply)
Hi ,
I need some help to finish my ftp script and i need to find the last one weeks of fles updated in the sepecific directory and see those end with Z and ftp them to my backup server. Any help is appreciated.
Thanks,
Ravi :) (1 Reply)
Hi all,
I'm using the following script to automated ftp files to 1 ftp servers
host=192.168.0.1
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd ${directory}
put $files
quit
ftp
and the .netrc file contain
machine 192.168.0.1
login abc... (4 Replies)
I have searched several thread and not found my solution, so I am posting a new qustion.
I have a very simple script on an AIX server that FTPs 2 files to a MS FTP server. These 2 files are created on the AIX server every hour, with a static name.
I need to FTP the files to the MS server, but... (1 Reply)
Have Solaris 10 server and a 2008 server.:cool:
Would like to FTP files from Solaris server into the 2008 server.:rolleyes:
FTP to be executed by 2008 scheduler on a daily basis.:p
FTP need to copy files 1 day old (on the Solaris), current Solaris folder holds more than 90 files, only last one... (1 Reply)
How to FTP the latest file, based on date, from a remote server through a shell script?
I have four files to be FTP'ed from remote server.
They are of the following format.
build1_runtime_mmddyyyy.txt
build2_runtime_mmddyyyy.txt
build3_runtime_mmddyyyy.txt
buifile_count_mmddyyyy.txt
... (9 Replies)
Hi,
i need to put files with current date at end from one server to another.
i.e. all the output files from below comand.
ls -ltr `date '+monthly_stats.sh%y%m%d'`
am using
mput `date '+monthly_stats.sh%y%m%d'`
but no files are transfered
Connected to gbdsnh18.hartfordlife.com.
220... (5 Replies)