I'm hoping someone has run into this previously...
os=WinXP
perl=active perl 5.6.1
we have quite a few environment varibles defined for
our application...under XP, using the cmd.exe shell,
the limits for a single variables length is somewhere near
an 8K limit, while the entire environment space is
65MB...this comes from the microsoft knowledgebase.
Using 'wc' (word count - gnu util), the total env space
that I am occupying contains roughly 30,000 charaters.
If I extend this by adding a new variable in a perl
script using $ENV, and I exceed 31,060 or there about, I
experience a failure to execute the system call
all together...however all other perl execution is fine...
I can print the variables that I have just set, etc. The
system call would be something simple like system("dir");
I have tried backticks and using exec. No luck.
I have examined PERL5SHELL and it points to cmd.exe which
should support much larger env sizes accroding to
microsoft.
Any ideas as to why I am running up against this limit?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.