Open rfaile313 opened 6 years ago
hi @rfaile313, I think a bash script would be a better solution, take a crack at it please.
Will do, I'm on it!
Brilliant.
Alright,
I've added a simple bash script to run your desktop cleaner. RunDesktopCleanerDaily.zip The first path specifies the location of the Python version you're looking to use (helpful, because many Unix systems have python2 installed and your script is Python 3+. The second is the location of the Python script itself. You, or any user that uses this shell script will need to point those paths appropriately.
I think the best bet is to implement a cron job to run the bash script daily. It's really easy, and will run over any UNIX based system (Linux, Mac, etc.)
cron will run the shell script which in turn runs the desktop cleaner script periodically at fixed times, dates, or intervals.
In the command line run:
crontab -e
This will open the vi editor, and you will need to add this:
0 18 * * * /home/MyUser/MyCrons/RunDesktopCleanerDaily.sh
with /home/MyUser/MyCrons/RunDesktopCleanerDaily.sh being your absolute path to the shell script i attached.
This, for example, this will execute the Desktop Cleaner Python script every day at 6 PM.
I think this solves your automation issue, but let me know what you think and/or if you have any questions!
@rfaile313 please send a PR request so I can review.
There's no compare, these are all external features that you will have to describe and setup for people to be able to automate your script.
Oh alright, its great than. as long as we have made some progress on it. we can work on making it simpler later.
No doubt. I'd like to continue helping, let's keep chatting. I'm not sure it gets much easier than this though.
Great progress.
Haha @rfaile313 just read the code and add anything you feel is needed, whatever you want to add, you are free!
What's the status on this? Did you still want to try and do it without a bash script/cronjob?
yeah I want to try it but you haven't sent in a pr request. How do I get your files?
I want to contribute as an python devloper.
Is this issue still active? If so, please share the progress, otherwise people can start work on it.
If so, how do you want to automate it? Do you want to run a timer in the script and leave it running, or create a bash script that runs the script every day?