with recent ansible this is in column 33

I should parse it more inteligent :(
This commit is contained in:
Miroslav Suchý 2014-04-11 12:31:39 +00:00
parent 4f92195d8a
commit 85539d014b

View file

@ -7,8 +7,8 @@ while (chomp($a = qx(ps ax |grep -v 'sh -c ps ax' |grep /home/copr/provision/bu
sleep 5;
}
#print qx(ps ax |grep ' 172.16.3.' |awk '{ print \$32 }');
@IPs = split('\s+', qx(ps ax |grep ' 172.16.3.' |awk '{ print \$32 }'));
#print qx(ps ax |grep ' 172.16.3.' |awk '{ print \$33 }');
@IPs = split('\s+', qx(ps ax |grep ' 172.16.3.' |awk '{ print \$33 }'));
#print "Running instances\n";
#print join(", ", @IPs), "\n";