I don't believe that would work the way you'd want it to... I believe
that each call to system() will use a new shell, so the second call
wouldn't have external.pl from the first call in its job list.
Rather than system, you'd probably be better off using the various Perl
fork() and exec() calls to do more direct process control from within
perl, rather than through a shell.
- john romkey
http://www.romkey.com
Karjala wrote:
What would be a good way to launch an external script from a Mason
page that would run independently?
From a plain Perl script I would do a fork and have the second process
launch the external script and exit, but I guess a fork is out of the
question for Mason.
I would do: system("external.pl &") followed by system("disown %1"),
but I'm not sure if that would work (and correctly 100% of the time).
What if, for example, external.pl hasn't become job %1 yet when the
disown command is called?
Do you think this is a good way to launch?
Thanks,
- Karjala
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users