title: How to convert a cron to a daemon
body: <p>I have a cron shell script which calls a stored procedure to do some operation. I want to know how can I change that cron to a daemon.</p>
  
  <p>Here's what I have.</p>
  
  <pre><code>    #!/bin/ksh
      # @(#)abc.sh    
  
  
      . /somedir/env/some_profile
      JOBNAME=`basename $0`
      LOG_DIR=$PROJHOME/log
      LOG_FILE=$LOG_DIR/process_abc.log
  
      function usage
      {
        echo "${JOBNAME}: Usage: ${JOBNAME}"
        echo "Exiting..."
        echo "process_abc ended ***UNSUCCESSFULLY*** at `date`" | tee -a $LOG_FILE
        echo ""  | tee -a $LOG_FILE
        exit 1
      }
  </code></pre>
  
  <p>Can you please help. Your help will be appreciated.</p>
  
  <p>Thanks</p>