Hi every body. Happy New Year to all !
it look like i’m a real dummy !!!
I tried to use crontab to schedule the shutdown of my computers at a specific time.
That’ s what I’ve done :
1°)
[…@HPG4 ~]$ crontab -e
A window opens, but it is impossible to modify it…
Why ??? I don’t know.
2°)
[…@HPG4 ~]$ su -
Password:
[root@HPG4 ~]# cd /etc/cron.daily
[root@HPG4 cron.daily]# touch shutdown
root@HPG4 cron.daily]# ls
shutdown
[root@HPG4 cron.daily]# nano shutdown
GNU nano 5.4 shutdown
15 17 * * * shutdown
[root@HPG4 cron.daily]# crontab -l
no crontab for root
[root@HPG4 cron.daily]#
ctrl+d
logout
[…@HPG4 ~]$ systemctl enable cronie
[…@HPG4 ~]$ crontab -l
43 17 * * * shutdown
But nothing happens at 5:43 p.m. (???).
3°) […@HPG4 ~]$locate kcron
/timeshift/snapshots/2020-10-17_10-15-25/localhost/usr/share/doc/HTML/ca/kcontrol5/kcron
etc…
It seems that kcron is well installed on my system, but impossible to find it in graphic mode.
[…@HPG4 ~]$ man kcron
No manual entry for kcron
…
bash: kcron: command not found
Of course, I went on multiple forums, without success.
Here are my questions:
What did I do wrong with crontab?
Why can’t I access kcron in graphical mode?
Is there a tutorial for a beginner under arch linux to set up crontab?
So, thank you in advance, for anyone who take time to read me .
Marc