DEV Community

Manuel Castellin
Manuel Castellin

Posted on

What is the coolest automation you created with "Crontab"?

Calling all Linux enthusiasts...

crontab is such a simple tool, but people always find creative ways to create 🔥 awesome 🔥 things with simple tools

Sending mails, running programs, cleaning up files, restore connections, there's a lot you can do by scheduling a shell script

Mine is not that awesome really...

...but it saved me a lot of time over the years. I have a scheduled shell script that cleans up my stale Docker containers and volumes every day. This way my laptop is always tidy and I don't have to hunt disk space hogs 😎 cool enough for me!

What's yours?

Top comments (5)

Collapse
 
garthvador profile image
Quentin Caillaud
45 11 * * 1-5 /bin/notify-send '🍜 time !!!' -u critical

A reminder, every week day at 11:45 AM, that it's time to go get my ramens if I do not want to wait to long before getting a seat in the restaurant... Very important !

Collapse
 
rmaurodev profile image
Ricardo

critial hahahahhaa love it!

Collapse
 
mcastellin profile image
Manuel Castellin

Ahaha I feel you buddy! Being a few minutes early at the restaurant makes it in the "top 3 productivity hacks" list!! 👍 Thanks for sharing this one!

Collapse
 
mte90 profile image
Daniele Scasciafratte

I have some scripts that download the last youtube video from various channels as mp3, that execute pypi.org/project/packt/ and github.com/Mte90/ExtStoreStats

Collapse
 
mcastellin profile image
Manuel Castellin

Awesome idea to streamline your micro-learning!! I like that 🤩