Sample Header Ad - 728x90

Incron commands with arguments

0 votes
1 answer
142 views
I know cron can execute commands with arguments and the documentation implies that incron can as well, but it doesn't give examples. I tried using incron with arguments like this
/home/alex/texmf/tex/latex/commonstuff/cttools.sty	IN_MODIFY,IN_CREATE	/bin/bash	/home/alex/bashscripts/luatoxe /home/alex/texmf/tex/latex/commonstuff/cttools.sty
and in a few variations but it doesn't seem to work at all. So how do I specify arguments for incron right? For completeness, luatoxe is the script
#!/bin/bash
cp $1 x$1
sed -i "/setmainfont/"' s/^/%/' "x$1"
sed -i "/setmathfont/"' s/^/%/' "x$1"
I also made a variant luatoxect where I specify the file path to cttools in the file itself, which works if I use it with incron.
Asked by Alexander Praehauser (221 rep)
Oct 3, 2023, 03:45 PM
Last activity: Oct 3, 2023, 03:49 PM