The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
/usr/bin/ls: 0403-027 the parameter list is too long. dateez Shell Programming and Scripting 4 05-30-2009 03:05 AM
Tar: Parameter list is too long ahSher Shell Programming and Scripting 5 04-20-2009 12:31 AM
0403-027 The parameter list is too long. romiljain UNIX for Dummies Questions & Answers 5 02-21-2008 08:52 PM
parameter list too long satyanarayang HP-UX 2 05-11-2004 08:02 AM
Grep 0403-027 The parameter list is too long. japada UNIX for Dummies Questions & Answers 1 10-11-2002 05:17 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-18-2009
juieshenkei juieshenkei is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 1
Question UNIX: 0403-027 The parameter list is too long

Hello All,

We have a batch job that clean old records. This run a script to back up file then delete. Unfortunately, this job been failing lately. This is the error we received.

"/usr/bin/compress: 0403-027 The parameter list is too long."
I am not sure if the job failed since its compressing too many files. Please advise what does this error really mean and the best solution for this.

I read from other threads that using "xargs" will solve this problem. Can I incorporate this "xargs" in the script? How?

Appreciate any input


Thanks!
juieshenkei
  #2 (permalink)  
Old 06-18-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,586
Yes xargs might solve your issue, but to tell you how to use it is difficult since we dont know what is in your script...
  #3 (permalink)  
Old 06-18-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,893
If your command is something like this:

Code:
compress *

Replace it with
Code:
ls -1 |xargs compress

But if your command is something like one of

Code:
compress *.txt
compress 2009-*

Then you need to first use "find" (for the first example)

Code:

find . -name "*.txt" -print | xargs compress

Reply

Bookmarks

Tags
command line too long, xargs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0