467,081 Members | 1,219 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,081 developers. It's quick & easy.

Executing External Program

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
  • viewed: 1203
Share:
3 Replies
numberwhun
Expert Mod 2GB
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 512MB
Also have a look at the docs for exec().

--Kevin
Jul 26 '08 #3
numberwhun
Expert Mod 2GB
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.

Similar topics

2 posts views Thread by Cédric Rossé | last post: by
reply views Thread by google@schwarzsolutions.com | last post: by
reply views Thread by GeoffW | last post: by
2 posts views Thread by qwertycat@googlemail.com | last post: by
2 posts views Thread by =?Utf-8?B?YmFzaA==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.