in reply to Persistent perl
here's another way to do it: Guide to a happier unix life - screen
start a screen named "dirmonitor"
bash$ screen -S dirmonitoryou are now inside screen; start your program
bash$ ./dirmonitor.plpress CTRL-a d to detache the screen (your program now runs in the background inside screen)
reattach the screen named "dirmonitor"
bash$ screen -r dirmonitor
|
---|