call external script - fork

C

cerr

Hi There,

I would like to start one of my perl scripts out of the one i'm
running and it should have it's parallel process and be totally
decoupled from the currently running script. I tried around with
system("/my/other/script.pl ARG1 ARG2"); and exec("/my/other/script.pl
ARG1 ARG2"); with and without & at the back but nothing quite did it
for me the way i imagined that. What am i doing wrongly?

Thanks,
 
C

cerr

Quoth cerr <[email protected]>:




What have you tried exactly, and how is it not doing what you want?

system("... &") will allow the command you run to continue after your
main process exits, and the main process will not be notified when it
exits; it is still partially connected to the original process, though,
since it's still in the same process group and still in the same
session. Both of these can be fixed, if necessary, but you need to be
sure they are what is causing your problem.

Yeah, I got it going properly now with system("...&"); That in fact
was just a confusion on my side, so nevermind but anyways, thank you
for attempting to help! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top