The solution
exec(qw/wmic process call create/ => "CommandLine='wperl $pathToMyself'");works fine, as long as the script to call (pointed to by $pathToMyself) doesn't require additional command line parameters.
I know, that this is not a Perl issue, but would you have a solution on how to add command line parameters to this call? I must admit that I don't understand the wmic docs...
In reply to Re^3: Restarting a Perl script on Windows 10
by petro4213
in thread Restarting a Perl script on Windows 10
by petro4213
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |