hi,
Sorry for not explaning the problem in detail.
Actually,my problem was not like that.
Trying to expalin the problem in a better way.
Suppose,my script /home/vikrant/hello.pl is as follows:-
-------------------------------
#!/usr/bin/perl -w
open(FILE,"+>>hello.txt");
print FILE"hello";
close(FILE);
----------------------------
So,what i am trying to do is to start the script automatically when my
system boot.
Also ,the same script execute again and again after a gap of 10
seconds.
To start it automatically after the system boot, i made the following
entry in /etc/rc.d/rc.local
----------------------------------
perl /home/vikrant/hello.pl &
-------------------------------------
Now,following entry in Crontab execute it again and again after a gap
of 1 minute.
-------------------------------------------
*/1 * * * * perl /home/vikrant/hello.pl
-----------------------------------------------
But,the Problem is in executing it again and again after a gap of 10
seconds.
Due to some reasons i need to void make use of while loop means
while(1).
So,please help me.
Thanks
Vikrant