On Tue, 2022-04-05 at 20:18 +0000, olivares33561 via users wrote:
How can I convert a crontab
#
[olivares@fedora Downloads]$ crontab -l
# min hour day-of-month month day-of-week command
# 0-59 0-23 1-31 1-12 0-6 0=sun 1=mon
#50 04 * * 1-5 ~/.xalarm >/dev/null 2>&1
#50 04 * * 0,6 ~/.salarm >/dev/null 2>&1
#59 09 * * 0,6 ~/.salarm >/dev/null 2>&1
#00 07 * * 1-5 ~/.xalarm >/dev/null 2>&1
42 08 * * 1-5 ~/.dalarm >/dev/null 2>&1
52 09 * * 1-5 ~/.dalarm >/dev/null 2>&1
40 10 * * 1-5 ~/.dalarm >/dev/null 2>&1
28 11 * * 1-5 ~/.dalarm >/dev/null 2>&1
16 12 * * 1-5 ~/.dalarm >/dev/null 2>&1
57 12 * * 1-5 ~/.dalarm >/dev/null 2>&1
40 14 * * 1-5 ~/.dalarm >/dev/null 2>&1
28 15 * * 1-5 ~/.dalarm >/dev/null 2>&1
17 16 * * 1-5 ~/.dalarm >/dev/null 2>&1
#30 16 * * 1-5 ~/.lalarm > /dev/null 2>&1
25 16 * * 1-5 /usr/sbin/poweroff >/dev/null 2>&1
#
to systemd timers? An easy idiot proof way. The .dalarm script
calls mplayer and plays from a playlist.
Tangentially, can you get mplayer to make sounds when it's not *you*
that runs it? i.e. A system user rather than a real user.
You could look at this, too:
https://wiki.archlinux.org/title/Systemd/Timers
Archlinux docs often get good recommendations
NB: I've only just looked at this just now, I've only ever done the
odd crontab thing a few times. Each time I have to work it out.
--
uname -rsvp
Linux 3.10.0-1160.59.1.el7.x86_64 #1 SMP Wed Feb 23 16:47:03 UTC 2022 x86_64
Boilerplate: All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.