comparison bin/example/pid.sh @ 674:df9d5093573e

PID example
author Jeff Hammel <k0scist@gmail.com>
date Tue, 06 May 2014 15:12:03 -0700
parents
children f8813ed3d015
comparison
equal deleted inserted replaced
673:1b8ea91f00a0 674:df9d5093573e
1 #!/bin/bash
2
3 PID=$$
4
5 echo "The PID of this shell script is ${PID}"
6 ps auxwww | grep ${PID}
7 kill ${PID}