Topic
  • 4 replies
  • Latest Post - ‏2006-10-09T16:02:04Z by SystemAdmin
SystemAdmin
SystemAdmin
2364 Posts

Pinned topic cron job no action

‏2006-10-06T20:03:37Z |
Hi I am keeping all three files for cron jar file,audit.sh and audit.ct in same directory but nothing is happening.any idea
/home/wasdmin/jar

1)#!/bin/sh
CLASSPATH=/home/wasdmin/jar/AAuditManager.jar:$CLASSPATH
PATH=/usr/java/j2sdk1.4.2_12/jre/bin:$PATH
export CLASSPATH
export PATH
echo $CLASSPATH
echo $PATH
java -jar home/wasdmin/jar/AAuditManager.JAR

2)0-59/3 * * * * /home/wasadmin/jar/audit.sh
Updated on 2006-10-09T16:02:04Z at 2006-10-09T16:02:04Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    2364 Posts

    Re: cron job no action

    ‏2006-10-06T20:50:05Z  
    /bin/sh: home/wasadmin/jar/audit.sh: No such file or directory getting this error in mail recived even though audit.sh is there in file
  • SystemAdmin
    SystemAdmin
    2364 Posts

    Re: cron job no action

    ‏2006-10-06T21:09:57Z  
    /bin/sh: home/wasadmin/jar/audit.sh: No such file or directory getting this error in mail recived even though audit.sh is there in file
    issue solved
  • ishields
    ishields
    988 Posts

    Re: cron job no action

    ‏2006-10-07T14:33:00Z  
    issue solved
    Thanks for the update. I'm assuming that you at least needed the path to your jar file to start with /home rather than just home. If you found other things that might help other forum users, please post.

    Ian Shields.
  • SystemAdmin
    SystemAdmin
    2364 Posts

    Re: cron job no action

    ‏2006-10-09T16:02:04Z  
    thanks for reply yes it was /home not home