Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Chained execution

by nine9 (Novice)
on Dec 29, 1999 at 04:25 UTC ( [id://1461]=perlquestion: print w/replies, xml ) Need Help??

nine9 has asked for the wisdom of the Perl Monks concerning the following question:

Newbie-type question

I'm really new to Perl and I was wondering if it's possible to "chain" execution of perl progs, i.e. to have one program call another, and when the child program is finished have control return to the parent...?

Replies are listed 'Best First'.
Re: Chained execution
by vroom (His Eminence) on Dec 29, 1999 at 20:04 UTC
    The system call does exactly that. All you have to do is something like system 'program_name';
RE: Chained execution
by Anonymous Monk on Dec 30, 1999 at 01:31 UTC
    depending on your system you have to call it like system('/usr/bin/perl script_name'); be careful because that command will wait for the program to exit. If you want to chain them, best to either wrap them with a shell script or add an '&' to run the next in the background that way the first script can exit

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1461]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found