Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would you still like help with automation? #24

Open
rfaile313 opened this issue Dec 4, 2017 · 14 comments
Open

Would you still like help with automation? #24

rfaile313 opened this issue Dec 4, 2017 · 14 comments

Comments

@rfaile313
Copy link

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?

@blavejr
Copy link
Owner

blavejr commented Dec 5, 2017

hi @rfaile313, I think a bash script would be a better solution, take a crack at it please.

@rfaile313
Copy link
Author

Will do, I'm on it!

@blavejr
Copy link
Owner

blavejr commented Dec 5, 2017

Brilliant.

@rfaile313
Copy link
Author

rfaile313 commented Dec 5, 2017

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!

@blavejr
Copy link
Owner

blavejr commented Dec 5, 2017

@rfaile313 please send a PR request so I can review.

@rfaile313
Copy link
Author

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.

@blavejr
Copy link
Owner

blavejr commented Dec 5, 2017

Oh alright, its great than. as long as we have made some progress on it. we can work on making it simpler later.

@rfaile313
Copy link
Author

No doubt. I'd like to continue helping, let's keep chatting. I'm not sure it gets much easier than this though.

@sudoplox
Copy link
Contributor

sudoplox commented Dec 5, 2017

Great progress.

@blavejr
Copy link
Owner

blavejr commented Dec 5, 2017

Haha @rfaile313 just read the code and add anything you feel is needed, whatever you want to add, you are free!

@rfaile313
Copy link
Author

What's the status on this? Did you still want to try and do it without a bash script/cronjob?

@blavejr
Copy link
Owner

blavejr commented Dec 9, 2017

yeah I want to try it but you haven't sent in a pr request. How do I get your files?

@omerharshit
Copy link

I want to contribute as an python devloper.

@dhamodaran-pandiyan
Copy link
Contributor

Is this issue still active? If so, please share the progress, otherwise people can start work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants