I have a python script i want to run every 5 minutes to check for a new file on a server. I know i can do that with cron-job. But in the directory of my python script i have a folder called 'logs'. Is there a way that i can output whatever my python script returned(it returns at least 20-30 lines every time) to a text file for the every 5 minutes into the logs folder. i want to be able to just search through the files to see the output for each run. So according to my calculations, i should get about 288 log files per day.
Also another doubt that i had is that the script shows some live stuff(like a download progress bar), so would there be a problem with that?
Thanks!