Okay so say I have a java program compiled as a jar file. I want to run four instances of this cron job to execute this jar file every Monday-Friday local time from 8am to 5pm, but at intervals of 30 mins, 1 hour, 4 hours, and 8 hours, respectively. How would I accomplish this?
*/30 8-17 * * 1-5 java -jar queryTickets.jar "critical" >/dev/null 2>&1
0 * * * 1-5 java -jar queryTickets.jar "high" >/dev/null 2>&1
0 */4 * * 1-5 java -jar sendNotifications.jar "medium" >/dev/null 2>&1
0 */8 * * 1-5 java -jar sendNotifications.jar "low" >/dev/null 2>&1
Are these correct? Which folder should I put my jar files in on my Ubuntu server?