By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,178 Members | 971 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,178 IT Pros & Developers. It's quick & easy.

Executing External Program

P: 3
Hi There,

How to execute series of unix command in perl program exec --> only the first command and end the program. It will be more useful you tell me how to pass extra arguments in the command.

BRs
Jul 25 '08 #1
Share this Question
Share on Google+
3 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
This sounds suspiciously like a homework question you are supposed to figure out. What you want to do is read up on system() command. If you know how to run the script you want, that that will do it.

Regards,

Jeff
Jul 25 '08 #2

eWish
Expert 100+
P: 971
Also have a look at the docs for exec().

--Kevin
Jul 26 '08 #3

numberwhun
Expert Mod 2.5K+
P: 3,503
Also have a look at the docs for exec().

--Kevin
One problem with exec() though, is that is needs to be used in a forked process, otherwise, any Perl code following it is useless and will not get executed.

Regards,

Jeff
Jul 27 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.