DEV Community

loading...

Start a new job, automate tools setup.

yusufadel profile image YusufAdel ・1 min read

Feel free to share your scripts

Scripts: that installs all the tools you need

Objective of this discuss is to find many solutions as possible for different platforms to help Getting start with setting up necessary tools

By the end of this discuss, I hope we get a useful solution for automating setups for various OS specially Debian based distros

Discussion (1)

pic
Editor guide
Collapse
yusufadel profile image
YusufAdel Author

cron

Actually i found the tool that get the job done (cron)
it's a time-based job scheduler
For example, you can run a backup of all your user accounts
with this command you add when editing the crontab

$crontab -e
0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
It means that at 5 a.m every week your user accounts will be backupped
, If its not a command you can run a script

With providing script PATH that's it
like this for example accomplished with python code

#!usr/bin/env python3 
from gi.repository import Notify
Notify.init("App Name")
Notify.Notification.new("Hi, Awesome").show()

Enter fullscreen mode Exit fullscreen mode

add this with crontab -e
@reboot PATH_TO_FILE

consider reading the docs for more control !