New issue 89: ps parse failure
https://bitbucket.org/rsc/plan9port/issue/89/ps-parse-failure
Anonymous on Fri, 9 Dec 2011 22:54:32 +0100:
Description:
There are times when Linux's /bin/ps will print "Your 20333x1 screen size is bogus. Expect trouble." to stderr, causing trouble for such programs as 9 ps which parse /bin/ps's output without first discarding its errors. One of those times can be when calling /bin/ps from inside an ssh session in a win window in 9vx. The message would be an excellent addition to the fortune file.
* http://procps.sourceforge.net/
* http://procps.sourceforge.net/procps-3.2.8.tar.gz
* procps-3.2.8/ps/global.c:161
{{{
a/bin/ps:91,97 - b/bin/ps:91,97
nawk -f /tmp/awk.xxx$$ | sort -n +1
;;
*)
- /bin/ps -axww -o 'user,pid,start,time,rss,stat,wchan,command' | sed 1d |
+ /bin/ps -axww -o 'user,pid,start,time,rss,stat,wchan,command' 2>/dev/null | sed 1d |
awk -f /tmp/awk.xxx$$ | sort -n +1
;;
esac
}}}
--
This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.