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!

Maximum characters in one line limitation 2

Status
Not open for further replies.

herzel

IS-IT--Management
Mar 5, 2003
73
IL

Hi
I tried to enter in Solaris 8 in one line the following echo"1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...etc. and have limitation of 254 characters maximum.
Seems like OS limitation (because I did not successes at all the servers in our LAN)
Can this limitation be override?
And how?


Thanks in advance for any help
 
I think it is a limit of the particular shell that you're using. Somebody correct me if I'm wrong.
 
I agree, I see similar behaviour in Korn shell on HP-UX. Note however that if you put the commands in a script they can be much longer.

Annihilannic.
 

I don't think it can be overridden easily. The last time I looked at this problem, the shells could be rebuilt for a larger command buffer, but then the IO libraries also had to be rebuilt because they also have a defined buffer max. I don't believe it is easily configurable.

eugene
 
You could switch to bash, just tried that on HP-UX and I was able to edit a command line 441,600 characters long! (I gave up testing at that point!!)

Annihilannic.
 
A star for research above and beyond the call of duty, Anni!

I want to be good, is that not enough?
 
Hi,
have you tried this -
LINE="11111111111111111111111111111111111111111111111 etc"
echo $LINE$LINE$LINE etc

It works for me.

Hope it helps, Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top