2023-11-08 16:03:24
Topic starter
Can we schedule groovy scripts to run at a given time daily basis, for example using a cron?
groovy runs on ssh port 8050. so when you run groovy, it does this:
ssh -oHostKeyAlgorithms=+ssh-rsa -oStrictHostKeyChecking=no localhost -p 8050
So if you setup your cron to do something like this it will work:
ssh -oHostKeyAlgorithms=+ssh-rsa -oStrictHostKeyChecking=no localhost -p 8050 < myscript.groovy