Results 1 to 1 of 1
Been a while since I started my own thread.
Basically what I'm trying to do is write a python script that is using the output of
Code:
vmstat -n 1
...
- 08-05-2008 #1
parsing vmstat in python
Been a while since I started my own thread.
Basically what I'm trying to do is write a python script that is using the output of
The language itself doesn't matter, the concept is I start a thread that executes that and it will be running in the background, and I want to periodically get the last line of input, which is leading to my question. I am only concerned with the last line in the vmstat output, if you run the command you notice every 1 second it will output something, I was wondering what I could pipe that to in order to only show the last line, if that is possible, or if anyone would have a better approach to it.Code:vmstat -n 1


Reply With Quote