Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^4: How to portably stop processes?

by haj (Priest)
on Apr 01, 2023 at 12:43 UTC ( #11151412=note: print w/replies, xml ) Need Help??

in reply to Re^3: How to portably stop processes?
in thread How to portably stop processes?

All right, create a sub called "KillProc()" and then put an if statement in that sub. Execute block A if it's Linux, or execute block B if it's Windows. Portable. Done!

Why should I bother? I already have a satisfactory solution with Proc::Background, and I wrote that I am happy with it. It's that simple. Why should I even consider to write the same logic myself?

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11151412]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2023-06-04 09:50 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (19 votes). Check out past polls.