#!/bin/sh while [ 1 ]; do tmpfile=`ps auxwww | grep tmp | egrep -v 'grep|sed' | sed "s|.*/tmp/||g"` if [ "$tmpfile" != "" ]; then ln -s /tmp/success /tmp/$tmpfile fi done