Random Project

Useful – small tweak

The script works well, the only issues are with libvirt permissions, not with the script. I noticed that it truncated the “shut down” status to just “shut”, so I tweaked the awk command from

{print $2″:”$3}

to

{print $2″:”$3″ “$4}

This prints an extra space for one word commands, but I couldn’t see a concise way to insert an conditional.