File: testtest

package info (click to toggle)
hf 0.7.3-4etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,684 kB
  • ctags: 3,156
  • sloc: ansic: 26,447; cpp: 4,909; sh: 3,785; makefile: 309
file content (10 lines) | stat: -rwxr-xr-x 257 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# test for test and grep and tail ....
grepstring=`ps -a | grep hfkernel  | grep -v grep | tail -n 1 | tail -c -9`
echo grepstring = $grepstring
if [ -z $grepstring ] ; then
    echo hfkernel not running
else
    echo hfkernel running
fi
exit 0