I need to execute a java program in shell looply.
The program is really basic. I'm getting an access token and I'm using it to make a simple POST request.
My problem :
- I need to refresh the access token every 55 minutes (the token has an hour expiration)
- I need to make the POST every 5 min
I don't know which timer I should use in my shell command(and in my code ?)
If I put 5 min, this will refresh the token every 5 min...
Sorry I didn't provide any code, it's just an issue I don't know how to solve.
Thanks !
cron, not a loopcron jobsto run yourbash script.