I've been using at
to schedule emails to be sent at a specific date and time. Problem is that the command that I wish at
to execute should take the job id as a parameter hence why I should be the one generating them. This is aside from the fact that what at
uses aren't id's at all, rather counts that gets incremented automatically which means that I have to worry about when they will reset.
My main inquiry is creating new at jobs with custom id's. Meaning that while creating jobs with the following command: echo "touch file" | at now + 1 minute
, if it could instead be something like this: echo "touch file" | at -i <custom-id> now + 1 minute
. So that when I hit atq
, I will find: <custom-id> Mon Feb 24 19:00:00 2020 a user
.
So, is there a way to give jobs custom when I create them with at
OR if there are any open source alternatives that scale better?
at
scale for you?jobno = (1+jobno) % 0xfffff; /* 2^20 jobs enough? */
, which allows for approximately one million concurrently queued jobs.at
jobs with custom id's. Meaning that while creating jobs with the following command:echo "touch file" | at now + 1 minute
, if it could instead be something like this:echo "touch file" | at -i <custom-id> now + 1 minute
. So that when I hitatq
, I will find: <custom-id> Mon Feb 24 19:00:00 2020 a user.at
, it's true that it supports a large number of simultaneous jobs but if what if those jobs are resource heavy, it could potentially lead to the low availability of the server, not to mention thatat
lacks a ton of features. What if I wanted to delete jobs? I would need to have the id of said job which is a pain to obtain (recovering it from the warning generated by the above command seems kinda hacky). I now need to have the id before I launch the command which looks impossible after a day of reading the docs and searching around.