Russ Cox is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

rsc / plan9port http://swtch.com/plan9port/

Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs from their native Plan 9 environment to Unix-like operating systems. See the web site http://swtch.com/plan9port/ for details.

Clone this repository (size: 58.2 MB): HTTPS / SSH
hg clone https://bitbucket.org/rsc/plan9port
hg clone ssh://hg@bitbucket.org/rsc/plan9port

Issues

#89 ps parse failure

Reported anonymously

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.

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

Status: new Responsible: nobody Type: bug Priority: trivial
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

No comments added for this issue yet.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?