exec() confirmation

2003-06-30 Thread Dan Muey
Howdy list what a beautifull Monday eh? I have shell commands I need run from a list that Perl creates based on a database. What I want to do is execute each command and regardless of what happens to the external program keep running my perl script. If I understand it right I need exec() for t

RE: exec() confirmation

2003-06-30 Thread Bob Showalter
Dan Muey wrote: > Howdy list what a beautifull Monday eh? > > > I have shell commands I need run from a list that Perl creates based > on a database. > > What I want to do is execute each command and regardless of what > happens to the external program keep running my perl script. > > If I und

Re: exec() confirmation

2003-06-30 Thread Bernhard van Staveren
> So If I do this : > > for(@cmds) { exec($_); } > > It will execute $_ and keep cruising regardless of if $_ worked, failed, > wasn't found, etc.. > > Correct? Nope :) exec() will replace your running perl interpreter with the program you're running, so that wouldn't have the effect you wanted

RE: exec() confirmation

2003-06-30 Thread Dan Muey
> > So If I do this : > > > > for(@cmds) { exec($_); } > > > > It will execute $_ and keep cruising regardless of if $_ worked, > > failed, wasn't found, etc.. > > > > Correct? > > Nope :) exec() will replace your running perl interpreter > with the program > you're running, so that wouldn't h

RE: exec() confirmation

2003-06-30 Thread Dan Muey
> Dan Muey wrote: > > Howdy list what a beautifull Monday eh? > > > > > > I have shell commands I need run from a list that Perl > creates based > > on a database. > > > > What I want to do is execute each command and regardless of what > > happens to the external program keep running my per