I have a cronjob which executes a python script. python script takes two parameter username and pass.
for example : execute.py vijay hTbY87
Requirement is to take this username and pass from dataBag i have in chef. My instance where i need to run this cronjob is in AWS.
Is there a way to have such a cronjob ?
Create a cronrun.sh file that contains the following:
This would execute every 30 minutes and will pipe the output (or Error message) to a logs directory. To search for another time interval, Google
crontab.guru every ___ minutesor hours or days or whatever you want.Make sure that you type
chmod +x cronrush.shso that the file becomes executable.