- Server operating system version
- CentOS 7.9
- Plesk version and microupdate number
- Plesk Obsidian 18.0.44 update #3
Hello all,
I need to execute a JAVA command line at a specific time.
The command should use a file located on a specific folder.
Actually I run it manually by using the SSH Terminal and executing these operations:
1- change to the folder where the file to be run is located: cd /httpdocs/mydir
2- run the command line: java -jar myfile.jar myparameter configuration/myxmlfile.xml myparameter2
This work, manually.
But how can I schedule this command?
I'm pretty new to Plesk/Linux.
What is the best/simple option to schedule this on Plesk Obsidian?
JAVA JRE in already installed on the server, in case you ask.
Thanks you in advance.
Tony
I need to execute a JAVA command line at a specific time.
The command should use a file located on a specific folder.
Actually I run it manually by using the SSH Terminal and executing these operations:
1- change to the folder where the file to be run is located: cd /httpdocs/mydir
2- run the command line: java -jar myfile.jar myparameter configuration/myxmlfile.xml myparameter2
This work, manually.
But how can I schedule this command?
I'm pretty new to Plesk/Linux.
What is the best/simple option to schedule this on Plesk Obsidian?
JAVA JRE in already installed on the server, in case you ask.
Thanks you in advance.
Tony