Ubuntu Timer Notes

sudo crontab -e edit
sudo crontal -l view configuration
service cron status start stop restart restart takes effect
*/10 * * * *  /home/mode1/kwctimer/startkwctimer.sh

sudo apt-get install gnome-schedule

https://help.ubuntu.com/community/CronHowto

startkwctimer.sh Note that you need to switch to the jar directory first
cd /home/mode1/kwctimer/ /opt/jdk/bin/java -jar kwctimer.jar -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 >>/dev/null & echo $! > java.pid

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326809370&siteId=291194637