LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2000, 03:15 PM   #1
tlgill
LQ Newbie
 
Registered: Nov 2000
Location: USA
Posts: 2

Rep: Reputation: 0

I have been trying to complete a "cp" (copy) command (with a * wild card) on RH 6.1 for the last week. I confirm my current directory (by pwd) to make sure I am in the (sub)directory that holds the files I want to copy. I also check the receiving device and directory (to make sure it is there (properly mounted) and ready to receive the files). I am trying to copy over 3500 files from "/abc/work" to another "/mnt/jaz" so copying them one at a time isn't an answer. I don't need all the files in the /abc/work directory so copying the whole subdirectory is not an option either.

My string looks like

cp -v /abc/work/*.filename /mnt/jaz/directoryname

So, copy (verbose so I can see what is going on, IF something happens) (from) /abc/work/(all the file names that end the same way) to (my jaz drive that is mounted in the /mnt/jaz sub-directory) into the "directoryname" directory" with the orginal filenames

I have looked the command up in several books and the "man" pages to make sure I am writing the command properly. I have shown it to several other Linux users. So far I can't seem to figure out what I am doing wrong.

I HAVE been able to copy the files one at a time, using the whole path & file name.

Any ideas?
 
Old 11-26-2000, 03:41 PM   #2
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
What is the error message you get? Is it regarding not finding a file to copy or destination not set?
 
Old 11-27-2000, 06:26 AM   #3
tlgill
LQ Newbie
 
Registered: Nov 2000
Location: USA
Posts: 2

Original Poster
Rep: Reputation: 0
Question cp error

The error message is:

bash: /bin/cp: Arguement list too long

I get the same message (except replace cp with mv) when I try to move files

Any suggestions?
 
Old 11-27-2000, 02:21 PM   #4
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
Lightbulb

You could try using the command dd to copy the files across. It would look like this:
#dd if=/abc/work/*.filename of=/mnt/jaz/directoryname

However it sounds as if it doesn't like copying that many files all at once. Could you limit the files copyed in one go by adding letters in before the extension?

I am not too sure of the dd command, the manual page will be alot more useful (#man -dd). I no success post back the error message.


 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 11:51 AM
updating new installation of 9.3 ERROR...ERROR...ERROR Morbid SUSE / openSUSE 3 08-15-2005 11:22 PM
c++ ostream error, messag rot large to trakc down location of error. exodist Programming 2 06-13-2004 06:35 PM
NETPERF: ERROR --> send_udp_stream: error on remote: Interrupted system call dravya Linux - General 1 05-29-2004 05:49 PM
cdrecord inupt/output error. write_g1: scsi sendcmd: no error lucstuk Linux - Software 9 08-09-2003 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration