> 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. If you want to run the commands one after the other, use system() instead, just make sure that the input isn't actually going to do anything crazy (like rm -rf /). Optionally, you can use exec() but then you'll have to fork() first, and the child exec()'s the command. -- Bernhard van Staveren - madcat(at)ghostfield.com GhostField Internet - http://www.ghostfield.com/ "A witty saying proves nothing, but damn it's funny!" - me, 1998 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]