05-17-2007
4,
0
Join Date: May 2007
Last Activity: 22 May 2007, 12:19 PM EDT
Posts: 4
Thanks Given: 0
Thanked 0 Times in 0 Posts
Daemon 101
I think I have an issue almost like Sammy_T's. I want to make a piece of code run as a daemon. I have some java, along with it 15 classpath's converted to a shell script that I can "runmyjavap". The script is just what I need to run after compiling it:
#!/bin/sh
java -classpath : ...(from here all my classes and ends with my java file name)
I can cron this thing and run it as a cronjob every half hour, because it's just renaming files based on requests. But I found out earlier that the request might be coming in very frequently like every minute. From what I read on a daemon I think it could solve my problem, if I could have one that sleeps every other minute and handles this. But I am clueless as how to and where in my shell script to add this implementation. Please help me understand if you can.