help me in this problem!!!cron with java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • med
    New Member
    • Jul 2006
    • 1

    help me in this problem!!!cron with java

    i have a big problem!
    how i will run a class java with the command cron????????
    i hav a class java taht i want to active him everyday at 23h30???
    so how i will do so with cron????
    plz it 's so urgent!!!!!
  • freecoder
    New Member
    • Jul 2006
    • 2

    #2
    If I understand your problem right, you want to schedule the run of a class file and I think you can do it by creating another shell script marking it with execute permission and use cron to schedule the shell script.

    eg. script

    #--------Script name ex.sh ---------------
    #!/bin/sh
    java <classname>
    #------------------------

    Then on command use
    chmod +x ex.sh

    Then Schedule ex.sh to run at the time you want to.

    Please let me know if this was what you were looking for.

    Comment

    Working...