Answer the question
In order to leave comments, you need to log in
How to run a Java program with cron?
Hello,
I wrote a program, I need to run it on the crown, 1 time per day.
Here's how I did it, I
write a command crontab -e
, it opens the vim text editor for me, in it I write the following: 00023*** java -jar /var/www/prg/programma.jar
then I press esc and enter :wq,
press enter.
Then it gives me:
no crontab for root - using an empty one
crontab: installing new crontab
"/tmp/crontab.XXXXxZHF8Z":1: bad day-of-month
errors in crontab file, can't install.
Do you want to retry the same edit?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question