Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > perl script invoking a chain of other perl scripts ....

Reply
Thread Tools

perl script invoking a chain of other perl scripts ....

 
 
martin
Guest
Posts: n/a
 
      04-17-2006
Hi , this question deals with a perl script that calls other perl
scripts using 'exec' or 'system' call.
I think it is a mute point and of no concern but I decided to ask just
to be sure.
Bascially I have something like this :

Calling script file --->
#!/usr/bin/perl
.....
.....
.....
my $cdpat2 = 'C:\Program Files';
my $cdpat1 = 'C:\DIR1
my $cdpat3 = 'C:\DIR2\STUFF\bin';

exec ("CalledScript1.pl $cdpath1 $cdpath2 $cdpath3");
exec ("CalledScript2.pl $cdpath1 $cdpath2 $cdpath3");

The question I have is that, do I need to worry about the completion of
the first script, i.e. Called Scriopts1.pl before I involve the
CalledScript2.pl. I don't think this should be of a concern, but I
thought to ask since the first call could take a long while to process
and the second one relies on the completion of the first one. Thanks.
Martin

 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      04-17-2006
martin wrote:
[...]
> Bascially I have something like this :
>

[...]
> exec ("CalledScript1.pl $cdpath1 $cdpath2 $cdpath3");
> exec ("CalledScript2.pl $cdpath1 $cdpath2 $cdpath3");
>
> The question I have is that, do I need to worry about the completion
> of the first script, i.e. Called Scriopts1.pl before I involve the
> CalledScript2.pl. [...]


No, you don't need to be concerned because the script will never reach the
second exec() anyway.
The only exception would be if the first exec call fails to start.

For further details please see "perldoc -f exec".

jue


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute a script from another script and other script does notdo busy wait. Rajat Python 3 01-08-2010 02:05 PM
RE: How to execute a script from another script and other script doesnotdo busy wait. VYAS ASHISH M-NTB837 Python 2 01-07-2010 08:18 PM
What is required for perl scripts to run correct when launched from rc scripts on HPUX 11? deanjones7@gmail.com Perl Misc 13 09-10-2007 11:58 AM
invoking system commands from a perl script vabby Perl Misc 10 03-13-2007 06:55 PM
Error returned while invoking a ".exe" from a perl script Haresh Perl Misc 0 10-10-2003 06:36 AM



Advertisments