This is probably pretty simple, but...
I desire to start another process from a Win32 perl script. If I were in unix, I'd just write
system "ls -l 2>Xerr >Xout &";
And go from there. Well, I'm in (Yuck!) Win32 and that doesn't work, thus the question. Oh, yes I'd like the sub process to get specific file descriptors that I specify like the example above. This may be the hard part. Eventually I'll wait for the process to end, and that may be another call. Yes, I'm using XP/2000/NT (not 95/98/Me), because they are the ones that can have tasks like this.
Update......
Well, I tried:
system 1, "program 2>Xerr >Xout";
and that works, BUT... Windows desires to put up an empty command window (yuck!) and there is a rare instance where I might want to abort 'program'. What to do now? Also, where is the "system 1," thing documented? I also tried the "start /b" goodie, but it put up a command window as well. The information so far will allow me to do my deeds, but (as usual) I need a bit more (*SIGH*).
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.