#!/bin/bash # demo respawner. enables you to do ctrl-D to restart a script # make sure the script itself ends with 'interactive' [ -f $1 ] || echo 'interactive' >> $1 while echo Restarting: pf $1; do pf $1; done