149 reputation
226
bio website
location
age
visits member for 3 years
seen Sep 9 '13 at 5:52

Oct
18
awarded  Scholar
Oct
18
accepted Finding CPU usage from top command
Oct
18
awarded  Student
Oct
18
comment Finding CPU usage from top command
Why isn't this not working(Piping both commands to make cpu.csv get updated dynamically.I'm unable to even open the cpu.csv file)- top -b -d 1 > file1.csv | grep Cpu | cut -c 35-39 | nl > cpu.csv Can someone pls help me?
Oct
18
comment Finding CPU usage from top command
Update- I'm able to top -b -d 1 > file1.csv (store it in a file) cat file1.csv | grep Cpu | cut -c 35-39 | nl > cpu.csv But the date doesn't get updated dynamically as I need to stop top command to execute the next grep.
Oct
18
asked Finding CPU usage from top command