Zeit – A GUI Tool to Schedule Cron and At Jobs in Linux

[‘

n

Zeit is an open-source GUI tool for scheduling jobs via “crontab” and “at”. It is written in C++ and released under GPL-3.0 License. It is an easy to use tool that provides a simple interface to either schedule a one-time job or iterative jobs. Zeit also comes with an alarm and timer which uses sound and notify the user.

n

n

Zeit Features

n

    n

  • Schedule, modify or remove CRON jobs.
  • n

  • Schedule or remove AT jobs.
  • n

  • Schedule, modify or remove Timer/Alarm.
  • n

  • Modify environment variables.
  • n

n

How to Install Zeit in Linux

n

For Ubuntu and Ubuntu-based distributions, a stable release can be installed by adding the PPA repository as mentioned below.

n

$ sudo add-apt-repository ppa:blaze/mainrn$ sudo apt updatern$ sudo apt install zeitrn

n

You can also try the development version of Zeit by adding the following PPA repository.

n

$ sudo add-apt-repository ppa:blaze/devrn$ sudo apt updatern$ sudo apt install zeitrn

n

For other Linux distributions, you can build it from sources as shown.

n

$ git clone https://github.com/loimu/zeit.gitrn$ mkdir build && cd buildrn$ cmake ..rn$ make -j2rn$ ./src/zeitrn

n

To launch Zeit, simply type.

n

$ zeit &rn

n

Start Zeit Tool
Start Zeit Tool

n

Run Non-Periodic Commands Using at Command

n

Non-periodic commands allow the scheduling command to run one time. Yes, you are right. It is using the “at” command. Go to “VIEWSELECT NONPERIODIC COMMANDS” or Press “CTRL+N”.

n

Non-Periodic Commands
Non-Periodic Commands

n

Choose “Add Command” as shown in the below image and add the entry. I am scheduling a command to run at 17:35. This command will create an empty log file in the Downloads folder with today’s date added to the file name as shown below.

n

NOW=$(date +%F); touch /home/tecmint/Downloads/log_${NOW}.txtrn

n

Schedule a Command
Schedule a Command

n

Now there is an entry added. You cannot modify the scheduled command but it is possible to delete the command before it runs using “Delete Command“.

n

Delete a Command
Delete a Command

n

At 17:35 my command ran fine and created an empty log file.

n

Command Executed Successfully
Command Executed Successfully

n

Run Periodic Tasks Using Cron Jobs

n

To schedule Cron jobs, choose “periodic task” or press “CTRL + P“. By default zeit will launch with “Periodic task“.

n

Schedule Periodic Tasks
Schedule Periodic Tasks

n

Enter a description, command, and scheduled time and press ok to add the entry to crontab.

n

Schedule a Command to Run
Schedule a Command to Run

n

Now my job is scheduled to run daily at 13:00.

n

Scheduled Task
Scheduled Task

n

You can check the crontab using “crontab -l” where the entry will be added automatically.

n

$ crontab -lrn

n

List Cron Jobs
List Cron Jobs

n

In addition to “at” and “crontab“, there is two feature to use alarm/timer which reminds us by invoking the sound. This entry will also be added to the crontab.

n

Set Alarm to Scheduled Task
Set Alarm to Scheduled Task

n

That’s it for this article. Explore Zeit and share your feedback with us.

n

‘]