PriNet has asked for the wisdom of the Perl Monks concerning the following question:
Ok, I have been trying for some time now to get a separate script to run independently from the main "index.pl" script. After several attempts, the closest I have found (system, exec, ipc::run, etc. etc.) was the Win32::Process:Create() function. I have looked a "alot" of tutorials and examples and ended up with this:
And when I "execute" the script on Win32 Apache, I can see where the "task" starts up (via task manager on http server), but it doesn't show up on the (http servers) desktop. The task manager says it's running under "SYSTEM". I'm assuming it's not showing up on the desktop is because I'm signed in as 'username' not 'SYSTEM'. How to I get the Win32::Process::Create() to start up on the 'username' account rather than the 'SYSTEM' account so I can continue with my development?use Win32::Process(); Win32::Process::Create( $Child_Module, "$ENV{SystemRoot}\\notepad.exe", "notepad testfile.txt", 0, Win32::Process::CREATE_NEW_CONSOLE(), "." );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 Process Create
by Anonymous Monk on Feb 16, 2015 at 01:46 UTC | |
by PriNet (Monk) on Feb 16, 2015 at 01:58 UTC | |
by Anonymous Monk on Feb 16, 2015 at 02:47 UTC | |
by PriNet (Monk) on Feb 16, 2015 at 03:07 UTC |