ubuntu系统里终端输入ps -ax > xxx.txt和在qt里system("ps -ax > xxx.txt")得到的两个txt文件内容不同
进程内容是相同的,但是在qt里编译程序生成的txt内容不完整,内容不完整指的是下面这种情况
22884 ? S 0:31 /usr/bin/python /usr/share/system-config-printer/applet
24725 ? Sl 0:05 /usr/lib/unity-lens-applications/unity-applications-dae
22884 ? S 0:31 /usr/bin/python /usr/share/system-config-printer/applet.py
24725 ? Sl 0:05 /usr/lib/unity-lens-applications/unity-applications-daemon
一个可以完整显示,一个不能
怎么解决,坐等解救