A perplexing mystery


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users A perplexing mystery
# 1  
Old 10-03-2008
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  
Old 10-03-2008
Have you saved the file in a windows editor? It should be helpful if you post your script.

Regards
# 3  
Old 10-03-2008
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  
Old 10-03-2008
$ which awk
/usr/bin/awk

$ ssh hostname
/usr/bin/awk

same path,,,, not diff awk. I am on AIX
# 5  
Old 10-03-2008
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.







Last edited by nullwhat; 10-03-2008 at 04:29 PM..
# 6  
Old 10-03-2008
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  
Old 10-04-2008
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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell functions mystery

so i noticed that when a shell script has a function defined in it, running "sh -x" on that shell script from the command line doesnt show what the function is doing. i like this. is there anyway for anyone to get around that? to be able to see exactly what a function or functions are doing? (4 Replies)
Discussion started by: SkySmart
4 Replies

2. UNIX for Advanced & Expert Users

Apache Mod_rewrite Mystery

Hi Folks, I am running on a CentOS 6.3 server, whose primary function until recently has been my Zimbra mail server exclusively. I added wordpress and I have not been disappointed, with this one exception of Apache mod_rewrite. I have already tried to set selinux to permisive to eliminate that... (5 Replies)
Discussion started by: cjm51213
5 Replies

3. UNIX for Dummies Questions & Answers

File permission mystery ?

Hello, running AIX 6.1 # ls -la /home/user1 drwxrwxrwx 8 user1 staff 4096 Apr 19 2011 . drwxr-xr-x 8 bin bin 256 Feb 08 2011 .. drwx---r-x 2 user1 staff 256 Apr 13 2011 dir1 # su - user2 $ cd /home/user1 $ ls dir1 ls: dir1: The file... (1 Reply)
Discussion started by: vilius
1 Replies

4. Shell Programming and Scripting

sort mystery

Hi everyone, I can't seem to understand the behavior of sort on a particular case. cat tmp25 1 a 10 b 20 c 2 d I do that: sort -k1,1 tmp25 1 a 10 b 2 d 20 c This one I understand, it's what i expected, from a string point of view 1<10<2<20 sort -k1... (9 Replies)
Discussion started by: a.brassac
9 Replies

5. Shell Programming and Scripting

Mystery about Case Statement

Can I make use of two command variable in case statement case $2 $3 in stp) Firewall disabled echo " Changing the http Proxy configuration " ;; str) Firewall enabled echo " Setting right http Proxy... (4 Replies)
Discussion started by: raghunsi
4 Replies

6. Filesystems, Disks and Memory

I/O Error Mystery

I burned identical raw encrypted data to three cds using my new external Toshiba drive. My internal IBM read only drive does not get an I/O Error when reading in Circumstance #1, but does get an I/O Error in Circumstance #2. But, the Toshiba drive can do both circumstances without an error. ... (1 Reply)
Discussion started by: darkstarxor
1 Replies

7. Solaris

The Mystery Directory

Hello Everyone, I am currently running a large Server with Veritas Volumen Manager, attached to a EMC. uname -a SunOS 5.8 Generic_117350-47 sun4u sparc SUNW,Sun-Fire-880 I have one directory that tends to change to a file.Once in a while and always in different time.The file is the... (1 Reply)
Discussion started by: Peterh
1 Replies

8. Shell Programming and Scripting

File descriptors problem perplexing me

Greetings, I have a troubling problem with a Korn Shell concept that I know works in Solaris. Essentially I am assigning file descriptors to a coprocess. Also, it should be noted that I am not using the public domain ksh but, rather AT&T ksh93. Here is a test scenario: $ sqlplus -s... (5 Replies)
Discussion started by: tmarikle
5 Replies

9. IP Networking

Traceroute and Whois mystery

Hey folks, I've been charged with the job of finding out who's been screwing around with the download counts on our site. So now I have this huge list of IP's that I supposed to match to such and such developer. I was told by one guy that I should just do a traceroute and that'd tell me where... (2 Replies)
Discussion started by: DumDum
2 Replies
Login or Register to Ask a Question