> 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 understand it right I need exec() for that.
>
> Yes, but you need to fork() first. exec() replaces your
> current program with a new one, so you need to create a new
> process with fork(), then exec() the program.
>
> >
> > So If I do this :
> >
> > for(@cmds) { exec($_); }
> >
> > It will execute $_ and keep cruising regardless of if $_ worked,
> > failed, wasn't found, etc..
>
> No. See:
Will do, thanks for the info!
Dan
>
> perldoc -q background
> perldoc -f exec
> perldoc -f fork
> perldoc perlipc
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]