Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2003
    Posts
    1

    Unanswered: 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!

  2. #2
    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

  3. #3
    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

  4. #4
    Join Date
    Jun 2002
    Location
    UK
    Posts
    525
    man xargs ;-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •