Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Executing a external command

by ww (Archbishop)
on Aug 31, 2006 at 15:04 UTC ( [id://570612]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\foo\>perl -e "print `dir;"
    Can't find string terminator "`" anywhere before EOF at -e line 1.
    
  2. or download this
    C:\foo\>perl -e "system dir;"
    
    ...
    11/21/2003  02:49p      <DIR>          .c--
    11/21/2003  02:49p      <DIR>          .c#
     <snipped - no further interest here ... >
    
  3. or download this
    C:\foo\>perl -e "$cmd=system(dir);print $cmd;"
    
    ...
                   9 Dir(s)  67,502,247,936 bytes free
    0 <=== There is the UNshifted system status/return code referenced abo
    +ve....
    C:\foo\>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://570612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found