On Mon, May 24, 2010 at 9:59 AM, Chaitanya Yanamadala <dr.virus.india at gmail.com> wrote: > hai > i have a perl script which will automatically check for the existing files > and then ftp them to a server, this one runs in a loop until i kill it, now > what i wants is i want to make this as a service so that it can keep on > running until i kill the service. so does any one have an idea how to do > this?? > > Chaitanya You can write a start/stop script and put in in /etc/init.d, or you can convert it to run from cron and put it in the user's crontab (instead of using an infinite loop and sleeping in the script, remove the loop & sleep and have cron run the script however often you need to check for files). Cron would be the preferred way here.