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

Re: system commands/shell and perl variables.

by choroba (Cardinal)
on Jan 21, 2019 at 21:42 UTC ( [id://1228784]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $XENDOMID = qq(xl list| DOM_ID=`fgrep $vm_run` | awk '{print $2}'` 
    +&& VNCPORT=`ps x \
    | fgrep -m 1 "domid $DOM_ID" | awk '{print $1}'` && sockstat -4l | fgr
    +ep $VNCPORT | awk '{print $6}');
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-03-28 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found