I can't use any modules from CPAN, only those that come with one of the common Windows-oriented Perl distributions.
That's a bit like asking: "How can I get to the top of teh building when I've a broken leg and refuze to use the lift?"
I have to work in a very restricted environment where access to the internet is not allowed.
Can you carry in a flash drive? Or a CD/DVD? A floppy disk? At a pinch you could print the module(s) you need to paper at home, carry the paper in and type them in at work.
"how do I start a process in the background then kill it after a pre-defined amount of time?"
Ostensibly all you need is:
... my $pid = system 1, q[ c:\the\path\to\theProgram.exe /option1 /option2 + ]; sleep $timeout; kill 2, $pid; ...
But there are always complications. You'll want to capture the output; supply "user input'; click on pop-ups; and do it from a cgi script running in a VM hosted on a remote server in Timbuktu.
In reply to Re: starting a process in the background, with a twist
by BrowserUk
in thread starting a process in the background, with a twist
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |