Is it possible to run a Perl script

kalyanbl

New Member
Joined
Nov 19, 2018
Messages
2
Hi folks,

Within Linux I would like Perl script A to launch Perl script B. However, I want script A to continue running without waiting for script B to return.
And I would like B to be totally independent so that when script A ends, script B is still running.

Is this possible? Any suggestion would be appreciated!


Thank you
Kalyan bl
Linux developer
 
Solution
You can append an & at the end of your second script launch like this:

system("/script/myscript.sh $params &");

Or if your running one of this distros that won't let that work you'll have to use fork or Proc::Background.
You can append an & at the end of your second script launch like this:

system("/script/myscript.sh $params &");

Or if your running one of this distros that won't let that work you'll have to use fork or Proc::Background.
 
Solution
Your welcome,

If your script is going to be mass distributed between different possible distributions I highly recommend learning fork.