I am trying to use the contents of a crontab inside a python script. I want to do everything using python. In the end I hope to take the contents of the crontab, convert it to a temporary textfile, read in the lines of the text file and manipulate it.
Is there any way i can use the contents of the crontab file and manipulate it as if it were a text file???
I've looked into the subprocess module but am not too sure if this is the right solution....
NOTE: I am not trying to edit the crontab in any way, I am just trying to read it in and manipulate it within my python code. In the end, the crontab will remain the same. I just need the information contained inside the crontab to mess with.