How to write a program in C which will print some column from result of linux command?

后端 未结 0 1902
闹比i
闹比i 2021-01-17 03:25

I would like to write a program which after putting in terminal :

gcc task.c -o task
ps aux | ./task

will print %CPU data as a stdout.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题