Google Answers Logo
View Question
 
Q: For palitoy-ga only ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: For palitoy-ga only
Category: Miscellaneous
Asked by: mickr-ga
List Price: $5.00
Posted: 30 Jul 2004 08:16 PDT
Expires: 29 Aug 2004 08:16 PDT
Question ID: 381294
Hi Palitoy,

How do I do a unix command from within a perl script.

regards,

Mick
Answer  
Subject: Re: For palitoy-ga only
Answered By: palitoy-ga on 30 Jul 2004 09:06 PDT
Rated:5 out of 5 stars
 
Hello Mick

Thanks for the quick question.  There are several ways to execute a
unix command from within a perl script, some examples would be:

my $code = `unix command`; # with backticks
system("unix command");
exec "unix command";

I hope this helps.  If you have any further questions on this please
let me know and I will do my best to help.
mickr-ga rated this answer:5 out of 5 stars and gave an additional tip of: $100.00
Great as always. Thanks for all the help ;-)

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy