#!/bin/ksh while [ -f "/proc/$1/cmdline" ]; do sleep 1 done