DEV Community


Discussion on: Start a new job, automate tools setup.

yusufadel profile image
YusufAdel Author


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")"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 !

Forem Open with the Forem app