[ stay on-list please, and bottom-post please ]

William Black wrote:
> I have two perl scripts that need to be run at the same time.
> 
> x.pl
> y.pl
> 
> How is this done?

You can use a shell to start them both:

   $ perl x.pl &; perl y.pl &

Or, one can fork() and exec() the other:

   x.pl
   ----

   # start y.pl running
   fork && exec 'y.pl';

   ... x.pl continues ...

See

   perldoc -f fork
   perldoc -f exec
   perldoc perlipc

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to