#1 Le 17/10/2016, à 04:50
- zagicien
commande automatique heure [RÉSOLU]
Salut,
Je voudrais faire une tâche qui exécute une commande toutes les dix heures.
Merci
Dernière modification par zagicien (Le 18/10/2016, à 01:44)
Hors ligne
#2 Le 17/10/2016, à 05:41
- Watael
Re : commande automatique heure [RÉSOLU]
salut,
man watch
Connected \o/
Welcome to sHell. · eval is evil.
Hors ligne
#3 Le 17/10/2016, à 06:20
- zagicien
Re : commande automatique heure [RÉSOLU]
salut,
man watch
Donc, si je veut executer un bash tout les 10 heures, je dois faire : "watch -n 36000 ./backup.sh" dans un terminal ?
Hors ligne
#4 Le 18/10/2016, à 01:41
- zagicien
Re : commande automatique heure [RÉSOLU]
J'ai réglé mon problème en fesant ceci :
$ sudo crontab -u user -e
* */10 * * * ./backup.sh >/dev/null 2>&1
Dernière modification par zagicien (Le 18/10/2016, à 01:49)
Hors ligne
#5 Le 18/10/2016, à 08:35
- Hizoka
Re : commande automatique heure [RÉSOLU]
Tiens je ne connaissais pas watch, c'est sympa
KDE Neon 64bits
Tous mes softs (MKVExtractorQt, HizoSelect, HizoProgress, Qtesseract, Keneric, Services menus...) sont sur github
Hors ligne