Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Close script with open system call

by NERDVANA (Deacon)
on Feb 27, 2020 at 19:42 UTC ( [id://11113510]=note: print w/replies, xml ) Need Help??


in reply to Close script with open system call

I’m assuming you are on Windows if you are executing a log file and getting the result you expected. (having it open in notepad or whatever)

The more official way to do this is with the ShellExecute Win32 API function. Looks like the Win32::FileOp module can do this. I believe the perl script will continue running without waiting for Notepad to exit, so you can end the perl script more gracefully than with exec.

This was previously answered in Launching a data file in Win32 using the assciated application automatically

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found