Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/planix-v0/rc/bin/psu – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
# psu - ps for just one user
3
rfork e
4
flags=()
5
while (! ~ $#* 0 && ~ $1 -*) {
6
	flags = ($flags $1)
7
	shift
8
}
9
 
10
# sed -n p rather than grep so that we get buffered writes.
11
# this is a huge difference in drawterm.
12
switch($#*){
13
case 0
14
	ps $flags | sed -n '/^'$user' /p'
15
case 1
16
	ps $flags | sed -n '/^'$1' /p'
17
case *
18
	echo Usage: psu '[ps-flags] [ user ]' >[1=2]
19
	exit usage
20
}