How to redirect the output of system() called in a C program to syslog?

前端 未结 0 1096
萌比男神i
萌比男神i 2020-11-27 22:53

Inside my C code I call system to have result from a bash command.

I.e. system(ps aux | grep my_prog | head -n 1)

Al

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