[[+content_image]]
I
I
Igor2016-09-30 12:43:37
Task Schedulers
Igor, 2016-09-30 12:43:37

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

Instead of the standard run twice a day. This infection is launched every time at 6 am and 8 pm and in the process of work it is re-launched every second until it works. What adds up the server with giblets.
However, if you run it manually
[[email protected] ~]$ 
sh /home/jive/jivepars.sh

That script, as it should be, fulfills the entire process only once. From which it becomes clear that crowns are still being extorted. But where?, why? ..

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
W
warnerbrowsers, 2016-09-30
@Lopar

* 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 question

Ask a Question

731 491 924 answers to any question