Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Open3 and bad gut feeling : 357 char STDIN limit?by coreolyn (Parson) |
on Feb 19, 2002 at 15:57 UTC ( [id://146403]=note: print w/replies, xml ) | Need Help?? |
Arg.. I had thought I had overcome the problem of executing large command lines by writing the command line into script that is executed. However, even though the created script runs fine directly from the command line, I have found that if I run it through the attached sub and the line to be executed execeeds 357 characters I 'hang' (MSwin32 - 2000). Additionally I have attempted to implement IO::Handle and IO::Select but apparently not in an effective way. (If it is indeed some type of a buffering problem). I lost all day yesterday to this code and hope someone can pinpoint my ignorance, or am I just exceeding the limitations of open3? Here's the relevant code. (note: I pushed all the logging to a separate module)
Here's a very typical script it will execute. The antcall.bat doesn't even have to exist to duplicate the problem.
Getting rid of the last three characters eliminates the hang coreolyn
In Section
Seekers of Perl Wisdom
|
|