in reply to Execute perl script on a webserver
If running your script only once a minute is OK, I would run the script as a cron job once every minute instead. This is the common approach to run recurring tasks and there already is lots of supporting infrastructure (and the usual problems are also well known and well documented). If you need a frequency higher than once every minute, consider letting your script run three or four checks and a pause of 10 seconds in between.
If you want to launch a script on the remote server and have it run disconnected, the easiest approach (outside of cron) is to run it via nohup:
nohup ./myscript.pl &
|
|---|