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(), "." );
In reply to Win32 Process Create by PriNet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |