Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Executing a external command

by ww (Archbishop)
on Aug 31, 2006 at 15:04 UTC ( #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
Node Status?
node history
Node Type: note [id://570612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2020-01-29 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?