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

Re^2: Restarting a Perl script on Windows 10

by jcb (Parson)
on Sep 20, 2019 at 22:53 UTC ( [id://11106456]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    exec(qw/wmic process call create/ => "CommandLine='$pathToMyself'" ); 
    +# if Perl scripts are associated to perl
    exec(qw/wmic process call create/ => "CommandLine='perl $pathToMyself'
    +" ); # if perl.exe is in %PATH%
    exec(qw/wmic process call create/ => "CommandLine='wperl $pathToMyself
    +'" ); # if wperl.exe is in %PATH%
    
  2. or download this
    unless ($^O eq 'MSWin32') { exec( $pathToMyself ) }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found