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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32 Process Input/Output

Status
Not open for further replies.

unholyangl

Programmer
Feb 14, 2006
10
US
I've developed a cross platform process management module for win32 and linux, tested on XP/Fedora4. Same ideas as a module like Proc::Background on cpan, but solves some problems I had with start_in directorys under windows and I implemented things I needed like manipulating processes which are running; Hence, not just executing them. Next I plan to implement user/daemon functionalitys, etc.

Anyway to my point, as I'm getting carried away ;D As Linux is founded on process input/output filehandles (or so I read in Perl Cookbook this morning,) I'm assuming windows is a bit different. Example: when I execute my <b>perl scripts</b> with the module under windows, it inherits the input/output/error meaning I can redirect it; BUT, when I execute a game server or something, ("Starsiege Tribes" to be exact if you know what that even is,) it seems to break off on it's own and I can't access the data because the buffers are going to another process/terminal or whatever.

Anyway what I'm getting at... <b>How can I open/connect INPUT/OUTPUT buffers at RUNTIME, after a process is executing.</b> Or some suggestions on how to solve some of these problems I'm having? Thx ALOT in advance, I've been stumped on this peace of the project for a few days now :(

Screenshots:
The process management is only used right now on that first line, if you take attention to where it says "spawn>"
What is going on here is the program Spawn is executing another perl program and works great cuz it inherits the forked input/output/error, but doesn't work the same when I execute something else under windows.
 
If your reviewing the screen shots and wondering "whats the 7 -1?" uhhh this will make more sense:

Thats running in a more detailed mode. Anyway the 7 -1 and other things I just threw in to test shuffling parameters and such around.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top