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