From ArchWiki
Latest comment: 29 September 2023 by Festuc in topic cron aplications

run parts

Can we rename this to something more friendly? I had a problem that could have been resolved had I known about run parts. Instead, I had to resort to this forum ( If we rename it to something like "external scripts" or something with a proper effect, it may be more helpful.

—This unsigned comment is by James Epp (talk) 00:18, 16 September 2014‎ (UTC). Please sign your posts with ~~~~!Reply[reply]

cron aplications

In wiki you said

17 02 * ... env DISPLAY=:0 /usr/bin/xclock

(maybe a advice that xclock is not installed by default may help) This line do not work in modern instalations, because it need authorization. there two diferent ways to do: When your user start their graphic desktop run (you can put it in autostart scripts)

echo `xauth info | awk -F"Authority file:" '{print $2}' | tr -d ' ' | head -1 ` >  ~/.xauth

then when you running programed apps this will use authentication for

17 02 * .. export DISPLAY=:0; export XAUTHORITY=`cat ~/.xauth` ; /usr/bin/xclock

Other way to do "same" if your user it's the only user with graphical interficie:

17 02 * .. export DISPLAY=:0 ; export XAUTHORITY=$(ls /tmp/xauth* 2>/dev/null | head -n 1) ; /usr/bin/xclock

I'm not a good english writer, so if some one can write this idea well and put in wiki will help

--Festuc (talk) 12:13, 29 September 2023 (UTC)Reply[reply]