CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Starting another program from the existing one

 



DavidUK
Deleted

Apr 4, 2001, 1:17 AM

Post #1 of 2 (253 views)
Starting another program from the existing one Can't Post

Hi All,

Please help! I am trying to call (start) another process (another *.cgi file) from my currently running program, pass this process several parameters and allow it to run on the background and forget about it although it is still running. So my script should go on without waiting for the result of the called program.

Could anyone tell me how can I do it?
Thank you all in advance!




Jean
User


Apr 4, 2001, 1:53 AM

Post #2 of 2 (252 views)
Re: Starting another program from the existing one [In reply to] Can't Post

I'm not familiar with CGIs, but in general you can use system() function
with & for executing the process in the background, like


Code
my $Command = './SomeScript.pl'; 
system "$Command \&";

This should help ... on Unix-Linux

Jean Spector
QA Engineer @ Extent Technologies, Ltd.
mage@lycosmail.com

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives