File: pathtest.sh

package info (click to toggle)
libcgroup 0.36.2-3%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,436 kB
  • ctags: 937
  • sloc: sh: 10,789; ansic: 7,684; yacc: 278; cpp: 123; makefile: 96; lex: 25
file content (12 lines) | stat: -rwxr-xr-x 194 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

while read name extra
do
	echo $name | grep -q '^#'
	if [ $? -eq 0 ]
	then
		continue
	fi
	path=`cat /proc/$$/cgroup | cut -d ':' -f 3`
	./pathtest $name $path
done < /proc/cgroups