Résolu le 10-07-19 Programmer une extinction hebdomadaire via qshutdown

GISALE
Messages : 82
Enregistré le : ven. 1 févr. 2019 18:57

Re: Programmer une extinction hebdomadaire via qshutdown

Message par GISALE »

Dernier message de la page précédente :

Ça y est j'ai réussi à activer cette case grisée en éditant le fichier de configuration via le bouton éditer le fichier de configuration qu'on trouve dans les paramètres puis on change les valeur false en true des lignes autostart et weekly_set, on enregistre le fichier et on revient sur Calendrier et Weekly et là la case est activée!
Maintenant reste à tester!!
Lenovo IdeaPad Z500
LM 20.3 Una Mate
Processeur : Intel Core i7 3520M 2.9Ghz
RAM : 6Go
Avatar du membre
arghlub
Administrateur du site
Messages : 11799
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence

Re: Programmer une extinction hebdomadaire via qshutdown

Message par arghlub »

Super 8-)

Dès que tu considéreras que ton sujet est "résolu", noublie pas de mettre un attribut de sujet (résolu), voir tuto ici
;)
Tour1 (custom) CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : LMint 22.3 | Debian 12 | MX Linux | XFCE
Tour2 (custom) CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 22.1 | MX Linux | XFCE
Portable2 MacBook Air A1466 | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MX Linux XFCE
─────( pour une informatique libre ! )─────
GISALE
Messages : 82
Enregistré le : ven. 1 févr. 2019 18:57

Re: Programmer une extinction hebdomadaire via qshutdown

Message par GISALE »

Test réalisé avec Qshutdown et ça fonctionne!

Par contre avec Crontab, ça ne fonctionne pas!! Malgré le forçage du démarrage via la commande

Code : Tout sélectionner

sudo /etc/init.d/cron start
et avoir autoriser l'utilisateur dans le fichier crond.allow qui se trouve dans le répertoire /etc

Code : Tout sélectionner

sudo nano crond.allow
fichier crond.allow

Code : Tout sélectionner

# ll crond.allow
atelier
puis le redémarrage du service crontab via la commande

Code : Tout sélectionner

sudo /etc/init.d/cron restart
le fichier crontab est le suivant :

Code : Tout sélectionner

# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command
55 19 * * 3 /sbin/shutdown -h now
Apparemment sur mon PC crontab ne fonctionne pas ou est-ce que Qshutdown aurait pris la main sur crontab???
Lenovo IdeaPad Z500
LM 20.3 Una Mate
Processeur : Intel Core i7 3520M 2.9Ghz
RAM : 6Go
Avatar du membre
arghlub
Administrateur du site
Messages : 11799
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence

Re: Programmer une extinction hebdomadaire via qshutdown

Message par arghlub »

re GISALE,

Sujet "résolu" par rapport à Qshutdown, donc on ne va pas s'étendre sur Cron dans ce topic.

Par rapport à Cron, il va falloir faire un peu de lecture, sinon ouvre un autre sujet si tu veux des explications plus pointues. ;)
Tour1 (custom) CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : LMint 22.3 | Debian 12 | MX Linux | XFCE
Tour2 (custom) CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 22.1 | MX Linux | XFCE
Portable2 MacBook Air A1466 | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MX Linux XFCE
─────( pour une informatique libre ! )─────
Répondre