Perhaps neater to remove the cat:-
The flags are:-
-n Not prompting (for user credentials, server, etc.)
-i disable interactive (i.e. it won't prompt if you mget *)
-v verbose output so you can see what's going on
Make sure you have a quit at the end of your somefile.ftp, just to be neat. Some FTP clients may loop waiting for input if you don't explicitly close them.
You can then read the log files back to check that the process has run correctly.
I hope that this helps,
Robin
Liverpool/Blackburn
UK
Last edited by rbatte1; 12-03-2013 at 10:21 AM..
Reason: Added logging
Hi,
I am new to unix and I want to ftp files from unix to windows nt machine.
My requirement is like i want to ftp files which are having system date (20050927) in between the filename. Once i get into ftp mode, I am not able to execute the unix command the get the system date and to change it... (1 Reply)
Hi all,
I had written the following script to transfer the files thru FTP.
But it throws me some error after I run the program. I guess its throwing error because of the path.
Do help me.
Thanks
cd /home/psv
find . -name '*.ksh' -print > /home/psv/ftpbatch/onefile
cd... (2 Replies)
Hi ,
We are facing a weird problem in our project. we need to send some xml & audio files to a remote FTP server from a Linux box, we are doing this in Perl script using Net::FTP->. Issue here is.. when FTPed the files using Perl scripts, only empty files ( 0 byte) are getting created on the... (2 Replies)
Dear ALL
i had a file name called test.log witch contains 300 archives log files.
so how can i give the test.log as a input to the ftp script
please let me know
Thank you (9 Replies)
Hi,
I have to transfer the files from one unix box to abnother. Below is the function i have written -
file_ftp ()
{
#for inFile in `cat /home/rgupta/list-test.txt`
#do
inFile=abc.arch.gz
FILETYPE=$inFile
ftp -in $GATEWAY1 <<!
user $USERID1 $PASSWD1
... (3 Replies)
Hi,
Currenty I am transfering the files which are in list-test.txt. Below is the code for same -
file_ftp ()
{
while read inFile
do
#inFile=abc.arch.gz
FILETYPE=$inFile
ftp -in $GATEWAY1 <<!
user $USERID1 $PASSWD1
lcd $PICKUPDIR
cd $DROPDIR1
bin
... (1 Reply)
iam using mget *.* too get all files in FTP
iam checking the FTP Server every day for the new files(there are 100s every day) and iam doing *.*
by doing so iam getting the old files also(it overwriting the old files) ......
how can i get only the new files...... from FTP (4 Replies)
Hi ,
I am new to shell scripting I was planning to write a script that will FTP files to destination folder..so which approach should I follow the ftp one or sftp one or scp one and which one one of them is most secure and fastest one..? (1 Reply)
I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)