#!/bin/bash -p
if [ $# -eq 0 ]; then
echo "Usage: $(basename $0) " 1>&2
exit 1
fi
while [ -d /proc/$1 ]; do sleep 0.5; done
If I implemented it using inotify, I presume I can get rid of the sleep, but that entails compiled code.
Cheap and cheerful pwait for linux
No TrackBacks
TrackBack URL: http://www.petesh.com/scgi-bin/MT/mt-tb.cgi/219
Leave a comment