Notifications
Clear all

[Solved] Can we schedule groovy scripts to run at a given time daily basis, for example using a cron?

1 Posts
1 Users
1 Likes
15 K Views
0
Topic starter

Can we schedule groovy scripts to run at a given time daily basis, for example using a cron?

Topic Tags
1 Answer
1
Topic starter

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