Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses


by Anonymous Monk
on Jan 26, 2001 at 07:40 UTC ( #54485=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I wonder, is there a way to issue a unix command using perl let say, I want to type ls -la and grab the output

Comment on Question
Replies are listed 'Best First'.
(ichimunki) re: Unix commands from within Perl?
by ichimunki (Priest) on Jan 27, 2001 at 04:03 UTC
    In a word, TIMTOWTDI. There are several different ways to interact with the shell using Perl. In addition, for your specific example, there are several ways to do that without relying on a shell. So, it sounds like maybe Perl is a good fit for your project/needs. Check Outside Links and Library for plenty of resources to get you started with Perl.
Re: Question
by mr_leisure (Beadle) on Jan 26, 2001 at 13:58 UTC
    Why anyone would want to answer this for you is beyond me.

    First off, you didn't even ask politely. Second off, is a community in which you GIVE and TAKE (i'd like to think you give before you take too), you can't just cruise by, drop your email address and say "do this and send the answer here".

    Manners are priceless, young glasshopper.

    Read Learning Perl, 2nd Edition, or one of the thousands of web tutorials out there. But at least do some reading before you post here.

    Good luck!

    Mr Leisure, Also Known As Captain Contraption
    if ($mr_leisure) { bow; }
    this is still not finished

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://54485]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2015-10-07 11:07 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (179 votes), past polls