Ftp files error


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Ftp files error
# 1  
Old 04-01-2014
Ftp files error

Hi Guys,

I am trying to copy files using FTP but I get this error:

Arguments to long...

I read that I can copy files in batches...How can I copy those files in batches?

I am currently using mget A*.csv B*.csv C*.csv, etc up to a certain letter then when its done i will continue.

Is there a way in which I can use something like mget [A-J]*.csv without listing the letters one by one.

Please Help...

Thanks in advance...
# 2  
Old 04-01-2014
"Too many arguments" does not mean "wiggle until you find a different way to jam all the arguments in one call". That'd still be too many arguments, because the problem is too many arguments.

That is one way of dividing it up into batches, yes. Another way would be generating lists outside the FTP program to upload.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to see the status of all the ftp put & get files logs and curent ftp transfer status ?

How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies

2. Shell Programming and Scripting

Need help creating a script to FTP files to a server and then delete the files that were transfered.

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)
Discussion started by: jmalfhs
4 Replies

3. HP-UX

Scripts to move files via FTP with error checking

Hi Members, Can members please advise or suggest how to write UNIX script which move all zip files in source directory and when done delete zip files from source directory? We want to delete only on successful transfer to the destination. secondly want to add some error checking if the FTP... (1 Reply)
Discussion started by: dxj0815
1 Replies

4. Shell Programming and Scripting

FTP files

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)
Discussion started by: ravigupta2u
3 Replies

5. Filesystems, Disks and Memory

Not able to FTP the files to a FTP server

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)
Discussion started by: kishorepotta
2 Replies

6. Shell Programming and Scripting

error in ftp script which pulls files from ATM

Hi Everyone, I have an ftp script which pulls files from ATM in a daily basis. But for the last two days i found that the script is throwing some error like ******************************************** cat: 0652-050 Cannot open EJpullErr_20090411.log. cat: 0652-050 Cannot open... (5 Replies)
Discussion started by: Renjesh
5 Replies

7. Shell Programming and Scripting

FTP - To handle error while transferring files

Hi, I had written an FTP script where in I loop through the directories and transfer the files from each and every directory of Windows to UNIX. Now the problem is when 1. The connection is unable to be established I should return some error codes 2. When there is some system... (1 Reply)
Discussion started by: mahalakshmi
1 Replies

8. Shell Programming and Scripting

FTP of files

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)
Discussion started by: mahalakshmi
2 Replies

9. Shell Programming and Scripting

trnsmiting thousands ftp files and get an error message

Im transmiting thousands ftp files to a server, when type the command mput *, an error comes and say. args list to long. set to I. So ihave to transmit them in batch or blocks, but its too sloww. what shoul i do?. i need to do a program, or with a simple command i could solve the problem? (3 Replies)
Discussion started by: alexcol
3 Replies

10. UNIX for Dummies Questions & Answers

FTP files

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)
Discussion started by: gopskrish
1 Replies
Login or Register to Ask a Question