Automate the Scheduling of the User-defined services
Hello,
I created a shell script "alpha.sh" which runs some Java files and they in particular dump data from a flat file into the database.
Now I need to schedule them in sucha a manner that i run them very two hours..
So i tried using its reference ( /sbin/service alpha start) in crond . It started running without any hitch. But the problem is that we need to stop the alpha.sh too since the database entry will not be reflected until unless the alpha service is stopped. I tried using "service alpha stop" but in vain.
What Do i do? ANy Suggestions would be valuable...
Can I try killing the pid thru crond? if yes how?
Tapish
|