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

Re: Assigning output of unix command to a variable

by almut (Canon)
on Dec 23, 2009 at 01:25 UTC ( #814034=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $nodename=`nslookup $_ | awk -F Name: '{ print \$2 }'`;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2015-08-03 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (55 votes), past polls