Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    2

    Default Cron Job not working

    Hi,

    I have the following jobs configured to run every 15 minutes
    0,15,30,45 * * * * . /home/decimal/sms_engine/OutSmsProcessor.sh
    0,15,30,45 * * * * . /home/decimal/sms_engine/InSmsProcessor.sh

    when i run these commands from command line they run fine and processing happens as expected. The cron log shows that these jobs are running fine

    command tail /var/log/cron shows the following

    Oct 29 03:45:01 services crond[7416]: (decimal) CMD (. /home/decimal/sms_engine/InSmsProcessor.sh)
    Oct 29 03:45:01 services crond[7419]: (decimal) CMD (. /home/decimal/sms_engine/OutSmsProcessor.sh)

    In spite of this no processing is being done by the program.

    Could someone please help

    Thanks a ton in advance.

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    I would try changing how the script is executed from the crontab; specifically, for a shell script I would change the period to "sh" like the following example:
    Code:
    sh /path/to/script.sh

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    2

    Default Thanks Don, I have tried them all

    Thanks Don. I have tried "sh" as well as "bash". This doesn't seem to help. My script looks like this
    _______________
    #!/bin/bash
    cd /home/decimal/sms_engine/
    export CLASSPATH=$CLASSPATH:/home/decimal/sms_engine/lib/mysql-connector-java-5.0.8-bin.jar:/home/decimal/sms_engine/
    java -Xms64m -Xmx64m -Xss512k OutSmsProcessor
    ______________

    and crontab entry is

    */15 * * * * sh /home/decimal/sms_engine/OutSmsProcessor.sh

    Any more thoughts??

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by mehtalalit View Post
    Thanks Don. I have tried "sh" as well as "bash". This doesn't seem to help. My script looks like this
    Code:
    #!/bin/bash
    cd /home/decimal/sms_engine/
    export CLASSPATH=$CLASSPATH:/home/decimal/sms_engine/lib/mysql-connector-java-5.0.8-bin.jar:/home/decimal/sms_engine/
    java -Xms64m -Xmx64m -Xss512k  OutSmsProcessor
    and crontab entry is
    Code:
    */15 * * * * sh /home/decimal/sms_engine/OutSmsProcessor.sh
    Any more thoughts??
    I would check with the software vendor that created the custom script or Java application within the "sms_engine" directory; they may be more familiar with the specific configuration requirements and symptoms involved relating to their product.

Similar Threads & Tags
Similar threads

  1. Cron Job editor is not working!
    By nsvr in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-18-2006, 10:44 AM
  2. Cron job not working. Help!!!
    By Lor in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-19-2005, 04:28 PM
  3. Cron Job not working
    By sinclac in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-02-2004, 07:14 PM
  4. Cron job not working when set up through CPanel?
    By avara in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 09-04-2002, 06:10 PM
  5. how can i tell if cron job working?
    By carperman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-04-2002, 04:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube