Run crontab script from /etc/cron.d and add a keyboard compose key

Rich Shepard via slackware <[email protected]> Tue, 2 Jan 2024 09:03:58 -0800 (PST)
Newsgroups gmane.linux.slackware
Message-ID <[email protected]>
A happy 2024 to all. I hope it brings health, prosperity, and satisfaction to
everyone.

Two issues I cannot resolve locally or using web searches.

1. Run shell script from within /etc/cron.d/

I had a script to update tlmgr in /etc/cron.weekly that worked until it
failed November 11th. To run it as a user from a console I use sudo (I'm
added to /etc/sudoers) and I'd like it to run every Sunday (say 3:30 AM).

I find no man or web page for cron.d examples; they all provide hits on
using crontab, with one that tells us how to use crond. Feh!

Here's my update-tlmgr.sh script:
cd /usr/local/texlive/2023/bin/x86_64-linux/
tlmgr update --self --all
fmtutil-sys --sys -all
cd

Do I put it in /etc/cron.d/ or in my crontab and tell /etc/cron.d where to
find it?

2. I use JabRef for my scientific references. When there's an accented
letter in an author's name, such as Ant~ao I apparently need to enter the
tilde-a using a compose key which is not on my US keyboards.

I have a ~/.keymap file that swaps capslock and ctrl keys:
# Exchange the left Control key and the Caps Lock key on the keyboard
keymaps 0-2,4-6,8-9,12
keycode 58 = Control
keycode 29 = Caps_Lock

How can I modify that to make the right-side alt key a compose key so I can
enter compose, ~, a in JabRef and non-LaTeX documents?

TIA,

Rich


-- 
slackware mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/slackware