Answer the question
In order to leave comments, you need to log in
[[+content_image]]
Why doesn't crontab work properly?
Of good!
Introductory:
[[email protected] ~]$ crontab -l
* 6,20 * * * sh /home/jive/jivepars.sh
[[email protected] ~]$ cat jivepars.sh
java -jar tehnosila-sync.jar -Dfile.encoding=UTF-8 --spring.config.location=app.properties -Xmx1024m -Xms256m >> logs/$(date +%F-%H)-javaparser.log
[[email protected] ~]$
sh /home/jive/jivepars.sh
Answer the question
In order to leave comments, you need to log in
* 6.20 * * * is every minute of the 6th and 20th hours.
0 6.20 * * * - this is at 6 h 0 min and 20 h 0 min - twice a day
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question