doupiao9318 2011-05-21 16:47
浏览 49
已采纳

PHP exec()导致剥离的行/列

I execute shell-scripts via PHP's exec() function. The result is then displayed. Executing dmesg works like a charm, however executing ps axu outputs lines that are cut at 80 characters, like the following:

webservd   731  0.0  0.217812 5100 ?        S   May 19  0:00 /usr/php/bin/php-c
root       352  0.0  0.1 6344 3396 ?        S   May 19  0:10 /usr/lib/inet/ntpd

Any idea how I can avoid that width-restriction?

Thanks

  • 写回答

2条回答 默认 最新

  • dsqve08622 2011-05-21 16:56
    关注

    Add the option w to ps to disable line clipping.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?