in reply to Start a service, wait 10 seconds, and stop the service.

You cane use 'open2' or 'open3' to accomplish your venture!. Here is an axample if you wanted to do bit more with the process in the future (eg: write to it, read from it, errors...)

Example:
$pid=open3( *wr1, *rd1, *er1, "C:\\Programme\\service.exe" ); sleep 3; close(wr1); local($/) = undef; close(rd1); close(er1); waitpid $pid, 0;
Update:
Of course the method mentioned in prev node would be the way to go for simplicity.....

Replies are listed 'Best First'.
Re^2: Start a service, wait 10 seconds, and stop the service.
by tphyahoo (Vicar) on Jun 17, 2005 at 16:21 UTC
    Very nice! Worked like a charm.