I am encountering a problem that I think there is a simple solution for. I'm currently using WinSCP (set up for FTP) with a Linux server for hosting a web application.
I've created a JAR file (
java -jar filename.jar
As I mentioned in my comments, I think the easiest way is to make a cron job on the remote Linux server.
You can edit the current cron table by using the
crontab -e command.
You can check out the cron format here or here.
In your case, it should look something like this:
5 */12 * * * java -jar /path/to/jarfile/filename.jar
This will run the
java -jar ... command every 12 hours 5 minute.
After you save it, you can check the existing cron jobs with the
crontab -l command.
You can also check the syslog for the CRON entries, to see if the job works as intended.
cat /var/log/syslog | grep CRON