# HG changeset patch # User Jeff Hammel # Date 1399414323 25200 # Node ID df9d5093573ee2ae923b4864b24052432a48269f # Parent 1b8ea91f00a02fbecb7acbfae232eb04bb3be0a8 PID example diff -r 1b8ea91f00a0 -r df9d5093573e bin/example/pid.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/example/pid.sh Tue May 06 15:12:03 2014 -0700 @@ -0,0 +1,7 @@ +#!/bin/bash + +PID=$$ + +echo "The PID of this shell script is ${PID}" +ps auxwww | grep ${PID} +kill ${PID} \ No newline at end of file