If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > error: parameter list is too long

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-03, 18:51
aemjeb aemjeb is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
error: parameter list is too long

I need to put 10,000 files on tape. I intended to use the tar command in conjunction with the find command to locate the files. This is what I tried:

tar cvf /dev/rmt0 $(find . -name "*.aw" -o -name "*.as")

I get this error: 0403-027 the parameter list is too long.

Can someone help me with this?? Thanks!
Reply With Quote
  #2 (permalink)  
Old 10-24-03, 17:51
fla5do fla5do is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 138
tar or cpio; that is the question

better you use CPIO-Command

try this :

> xyz #make the file empty
find . -print | grep ".aw" >> xyz
find . -print | grep ".as" >> xyz
cat xyz | cpio -ocv > /dev/rmt0

this will work whith blockingmode and can be faster
cat xyz | cpio -ocv -B20000 > /dev/rmt0

to restore the files use :
cpio -icvdu < /dev/rmt0

you can also try this :

first you make an archive from your files on the harddisc with CPIO and then you use TAR to save it on tape.

> xyz
find . -print | grep ".aw" >> xyz
find . -print | grep ".as" >> xyz
cat xyz | cpio -pcvdu > xyz_all # pathingmode
tar cvf /dev/rmt0 xyz_all

Greetings from Germany
Peter.F
Reply With Quote
  #3 (permalink)  
Old 06-28-04, 15:57
sjreese sjreese is offline
Registered User
 
Join Date: Nov 2003
Location: Chicago
Posts: 3
403-027 Error on AIX

Just increase the systems ARG/ENV list size, that will solve your problem
and elimainate having to work around it. It has memory implications of
course and best to be realistic rather than open it up too much.
Do this via smit >> System Environments >> Change Show Characteristics of
Operating System >> ARG/ENV list size in 4K blocks
Reply With Quote
  #4 (permalink)  
Old 06-29-04, 03:49
Damian Ibbotson Damian Ibbotson is offline
Padawan
 
Join Date: Jun 2002
Location: UK
Posts: 525
man xargs ;-)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On