Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: doughnut charts with gd:graph

by hippo (Bishop)
on Jul 25, 2018 at 10:23 UTC ( [id://1219242]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $cmd_1 = "sudo df -h |grep /var |awk '{print \$2}' | sed -e 's/.\$/
    +/'";   
    my $cmd_2 = "sudo df -h |grep /var |awk '{print \$3}' | sed -e 's/.\$/
    +/'";   
    
    my $result_used = qx/ $cmd_1 /; #$result_used shows 1.4
    my $result_free = qx/ $cmd_2 /; #$result_free shows 85
    
  2. or download this
    my @df = `df /var`;
    my ($used, $free) = (split (/\s+/, $df[1]))[2,3];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (9)
As of 2024-04-18 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found