Creating a Cron Named Job

How to create a cron job from the command line so that it displays with a name in gnome-schedule?

I know how to create a cron job using crontab. However, all my tasks are displayed with an empty name. I would like to better document my tasks so that I can easily identify them in gnome-schedule or a similar cron wrapper.

+3
source share
1 answer

Well, just did a cronjob in Scheduler and looked at my crontab file, and it looked like this:

0 0 * * * ls >/dev/null 2>&1 # JOB_ID_1

Pay attention to JOB_ID_1the end.

I went in ~/.gnome/gnome-scheduler/, looked at the files there, and there was one, named simply 1(as in the number "one"), which had some information, including the name

ver=3
title=Hello
desc=
nooutput=1

, cronjob:

0 0 * * * ls -al >/dev/null 2>&1 # JOB_ID_2

1 2 JOB_ID_2, , :

ver=3
title=This is a test
desc=
nooutput=1

Gnome-Schedule, cronjob .

, cronjob.

+6

Source: https://habr.com/ru/post/1733999/


All Articles