Need to schedule Java program in crontab

Need to schedule Java program in crontab
0

#1

Hi all, need a help I have a script which is written in Java… File will be like GatewayHealthCheck.java… I want to schedule this java program in crontab and run on daily basis… If it’s a shell script file we will directly mention like
23 00 *** /path/script.sh inside crontab

How we can do for java ?
Pls help!


#2

Just create a wrapper for it in a shell script. That is, make a new shell script to call “java …” and execute your code. Then schedule that into crontab.