The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mystery infestation strikes Linux/Apache Web sites iBot UNIX and Linux RSS News 0 01-24-2008 04:10 PM
The Mystery Directory Peterh SUN Solaris 1 11-09-2007 09:35 AM
File descriptors problem perplexing me tmarikle Shell Programming and Scripting 5 01-26-2005 11:13 AM
Traceroute and Whois mystery DumDum IP Networking 2 07-03-2002 11:24 PM
terminal/port (serial) lock up mystery! SCO 5.0 ftn96 Filesystems, Disks and Memory 10 06-04-2002 02:05 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-03-2008
nullwhat nullwhat is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 25
A perplexing mystery

A perplexing mystery...

please note that i am not a lacky, and the error below is misleading

recently something i do all the time broke (a script).

now when i run this script i get this error.

/usr/bin/awk: 0403-027 The parameter list is too long.

note that the (parameter list is NOT too long.) it seems to only get this error when it is executed within the script. if i take this part of the script out and run it on its own it works fine.

furthermore if i (this is the perplexing part)

ssh hostname

and then run the script it works fine!!!! (odd)

if i do (in the terminal that i ssh to that script work worked in)

set > tmp

and then set the tmp ENV vars in the terminal that the script does not work in and try the script, i still get this error.

my qestion, what is the ENV var that controls "parameter list" length? why would the script reset this in one shell and not the other?


Any thoughts?
  #2 (permalink)  
Old 10-03-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,293
Have you saved the file in a windows editor? It should be helpful if you post your script.

Regards
  #3 (permalink)  
Old 10-03-2008
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Gotta be a different PATH resulting in a different awk. /usr/bin/awk on Solaris is antique. Using Solaris?

Code:
# showrev -p | awk '{print $2}' > /dev/null
awk: record `Patch: 108528-29 Obs...' has too many fields
 record number 13
# PATH=/usr/xpg4/bin:$PATH
# showrev -p | awk '{print $2}' > /dev/null
#
  #4 (permalink)  
Old 10-03-2008
nullwhat nullwhat is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 25
$ which awk
/usr/bin/awk

$ ssh hostname
/usr/bin/awk

same path,,,, not diff awk. I am on AIX
  #5 (permalink)  
Old 10-03-2008
nullwhat nullwhat is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 25
Franklin52 the code is very long, but you asked for it. i point to proprietary software, and you will not actaly be able to run this. but the awk statments are there.






Attached Files
File Type: txt script.txt (26.0 KB, 28 views)

Last edited by nullwhat; 10-03-2008 at 03:29 PM..
  #6 (permalink)  
Old 10-03-2008
nullwhat nullwhat is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 25
oh one more piece to the puzzled is -- if i have another user run the same script they do not get this error, and this is the odd part, our .profiles and equal, as i set their system up in the first place!
  #7 (permalink)  
Old 10-04-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,293
Try to increase the max length of the command line, check out this link:

AIX: 0403-027 The parameter list is too long (6625591)

Regards
Sponsored Links
Closed Thread

Bookmarks

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 10:29 PM.


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