Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

max shell script size

Status
Not open for further replies.

spigven

Technical User
Mar 23, 2010
5
GB
Hello

I have a fairly weighty shell script which calls other shell scripts. After amendment which increased its size it now fails near the end. After exhaustive investigation all I can come up with is that I may have exceeded a size limitation. Anyone know how the limit is determined on AIX 6.1 ?

Thanks

Mark
 
I never heard of that... What error message do you get?

Have you checked for a missing quote or bracket or parenthesis or ...

HTH,

p5wizard
 
Hello

Yes I'm sure its related to size, I've experienced something similar in 4.3 but it was a much larger script. Then I simply split the script into three parts as a work around which is not feasible in this instance.

Thanks

Mark
 
Perhaps it is related to some ulimit setting? See if you can circumvent the problem by adjusting rss or stack or data limit.

man ulimit

HTH,

p5wizard
 
Thanks for the replies but I've answered my own question.

First I remembered the symptoms of a script that was too large and these were not it.

Re examining the code for the umpteenth time I found a bug in the script that ran as the step prior to the failing step.

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top