hai all <br> thank you for your replies.<br>but can you send me some examples so that i can understand the things more better..<br>i am quite new to linux..<br><br>so can u help me out.<br><br><br clear="all">Chaitanya<br>

<br><br>
<br><br><div class="gmail_quote">On Mon, May 24, 2010 at 8:03 PM, Jerry McAllister <span dir="ltr"><<a href="mailto:jerrymc@msu.edu">jerrymc@msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><div></div><div class="h5">On Mon, May 24, 2010 at 07:29:21PM +0530, Chaitanya Yanamadala wrote:<br>
<br>
> hai<br>
>  i have a perl script which will automatically check for the existing files<br>
> and then ftp them to a server, this one runs in a loop until i kill it, now<br>
> what i wants is i want to make this as a service so that it can keep on<br>
> running until i kill the service. so does any one have an idea how to do<br>
> this??<br>
<br>
</div></div>Has anyone syggested using rsync instead of a Perl script?<br>
That is designed just for things like this and works well<br>
and might be more secure than the Perl script.<br>
<br>
Or you could put use rsync in your Perl script.<br>
<br>
You will need to create a little binary to invoke the Perl script.<br>
Then create an rd.d type script that takes a 'start' and 'stop'<br>
put it in and run it with a 'start' parameter.   Give the startup<br>
script a 'stop' when you want to quite.<br>
<br>
Look at the stuff in init.d, etc such as apachectl for hints.<br>
You probably don't need anything as elaborate as that for<br>
the start/stop script, but it is a good example.<br>
<br>
////jerry<br>
<br>
<br>
><br>
> Chaitanya<br>
<div><div></div><div class="h5"><br>
> _______________________________________________<br>
> CentOS mailing list<br>
> <a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
> <a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br>