I do not think I need to run them in parallel.  I just need scripta.pl to 
finish in under 60 seconds and scriptb.pl can take as long as it needs to. 
 Scriptb.pl is only called when scripta.pl needs to call it.


I got some info on this:  % perldoc -f fork 

I am confused about the syntax of the fork though.  Does anyone have any 
examples?


Anthony J Segelhorst
Enterprise Systems Management Team
Phone: 937-495-1876
Email: [EMAIL PROTECTED]





<[EMAIL PROTECTED]>
10/28/2003 03:44 AM

 
        To:     <[EMAIL PROTECTED]>
        cc:     <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
        Subject:        RE: Opening a new shell



>> -----Original Message-----
>> From: Anthony J Segelhorst [mailto:[EMAIL PROTECTED]
>> Sent: Monday, October 27, 2003 5:50 PM
>> To: [EMAIL PROTECTED]
>> Subject: Opening a new shell
>>
>>
>> I am strapped for time on the run time on a perl script I have been
>> working on.
>>
>> I was wondering if it is possible to open another shell within a perl
>> script that will call another script that uses another processes.
>>
>> If I call script B from script A, script A will not complete
>> until script
>> B is done running.  Is there a way to run script B within
>> another shell or
>> process?

But you want to run them in parallel? You will need threads.


>>
>> `c:\temp\scripta.pl`;
>
> unix?  Guess not, since you are using backslashes in your file name.
> try: system('c:/temp/scripta.pl &');
>
> The backticks imply you want to wait for the script to return some
> output, system may make more sense here.  Also, it is ok to use forward
> slashes in your perl script, even in Windows.
>
> Mark
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service._______________________________________________________________




________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service._______________________________________________________________

Note:  Please update your email address for this user to reflect the
new MeadWestvaco Corporation.  MeadWestvaco employee email addresses
are in the format of [EMAIL PROTECTED] 

This electronic message contains information from MeadWestvaco
Corporation or subsidiary companies, which may be confidential,
privileged or otherwise protected from disclosure.  The
information is intended to be used solely by the recipient(s)
named.  If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this
transmission or its contents is prohibited.  If you have
received this transmission in error, please notify MeadWestvaco
immediately at [EMAIL PROTECTED]
_______________________________________________________________________

Reply via email to