All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
Running up against ksh array size limit
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
Running up against ksh array size limit - Aug. 23, '06, 11:02:47 AM
|
|
|
policyvote
Posts: 12
Joined: Jan. 11, '06,
Status: offline
|
Hello all--
I unfortunately ran up against the old array size limit of 1,023 elements in a ksh script. According to my UNIX in-a-nutshell book, the array max was upped to 4,096 elements with ksh88, and modern versions allow up to 65,536 elements! I am running SFU 3.5 on Win2K . . . what can I do?
Peace
policy
|
|
|
RE: Running up against ksh array size limit - Aug. 23, '06, 2:02:35 PM
|
|
|
Rodney
Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
There's a few ways to go:
1) I haven't made it into a package yet, but the base binary for a newer ksh
I dropped onto the ftp site several weeks ago in /pub. You can try running that.
I don't know if the array size changed/increased, but it's worth a try.
2) You could try running the script with bash. I don't know off-hand the array
limit with bash, but most "ksh scripts" can be run by bash.
3) If (1) or (2) don't work out I can look at the ksh build to see if the
array size can be increased. Given other work priorities it would be a several days
at least before getting to this option.
|
|
|
RE: Running up against ksh array size limit - Sep. 27, '06, 11:19:19 AM
|
|
|
policyvote
Posts: 12
Joined: Jan. 11, '06,
Status: offline
|
Rodney--
Sorry it took so long to get back to you. I had already had to code around this specific problem, so I didn't get a chance to actually test this. I did install the newer build of ksh, however. I immediately noticed improved performance--especially in terms of draw rate to the screen, things seem to happen much much faster. However, if I use the "clear" command, I get the error: 'xterm': unknown terminal type.
I will test to see if the array size thing has been fixed, but in the meantime, do you have any ideas?
Peace
policy
|
|
|
RE: Running up against ksh array size limit - Sep. 27, '06, 1:23:32 PM
|
|
|
policyvote
Posts: 12
Joined: Jan. 11, '06,
Status: offline
|
Excellent! Thanks Rodney, I really appreciate you checking this out.
Peace
policy
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|