<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://doc.ycharbi.fr/index.php?action=history&amp;feed=atom&amp;title=Incron</id>
	<title>Incron - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://doc.ycharbi.fr/index.php?action=history&amp;feed=atom&amp;title=Incron"/>
	<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Incron&amp;action=history"/>
	<updated>2026-05-10T15:14:49Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://doc.ycharbi.fr/index.php?title=Incron&amp;diff=1328&amp;oldid=prev</id>
		<title>Ycharbi : Changement de catégorie</title>
		<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Incron&amp;diff=1328&amp;oldid=prev"/>
		<updated>2022-02-27T23:09:45Z</updated>

		<summary type="html">&lt;p&gt;Changement de catégorie&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 27 février 2022 à 23:09&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;service_cron&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Service_ordonnancement&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;incron est un outil qui exécute des actions selon des événements du système de fichiers.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;incron est un outil qui exécute des actions selon des événements du système de fichiers.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ycharbi</name></author>
	</entry>
	<entry>
		<id>https://doc.ycharbi.fr/index.php?title=Incron&amp;diff=255&amp;oldid=prev</id>
		<title>Ycharbi : /* Fonctionnement */</title>
		<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Incron&amp;diff=255&amp;oldid=prev"/>
		<updated>2017-01-11T12:52:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Fonctionnement&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 11 janvier 2017 à 12:52&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Ligne 12 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 12 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Fonctionnement=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Fonctionnement=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Le fonctionnement est proche de cron :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Le fonctionnement est proche de &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;cron&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Le démon incrond &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;scanne &lt;/del&gt;les fichiers /etc/incron.d/ pour savoir quoi faire en fonction des évènements du système&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Le démon incrond &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;scan &lt;/ins&gt;les fichiers /etc/incron.d/ pour savoir quoi faire en fonction des évènements du système&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Installation=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Installation=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ycharbi</name></author>
	</entry>
	<entry>
		<id>https://doc.ycharbi.fr/index.php?title=Incron&amp;diff=237&amp;oldid=prev</id>
		<title>Nmorin : Page créée avec « Category:service_cron incron est un outil qui exécute des actions selon des événements du système de fichiers.  =Composition= Il est composé de :  * '''incrond'''... »</title>
		<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Incron&amp;diff=237&amp;oldid=prev"/>
		<updated>2017-01-10T14:57:08Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &lt;a href=&quot;/index.php?title=Cat%C3%A9gorie:Service_cron&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Catégorie:Service cron (page inexistante)&quot;&gt;Category:service_cron&lt;/a&gt; incron est un outil qui exécute des actions selon des événements du système de fichiers.  =Composition= Il est composé de :  * &amp;#039;&amp;#039;&amp;#039;incrond&amp;#039;&amp;#039;&amp;#039;... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:service_cron]]&lt;br /&gt;
incron est un outil qui exécute des actions selon des événements du système de fichiers.&lt;br /&gt;
&lt;br /&gt;
=Composition=&lt;br /&gt;
Il est composé de :&lt;br /&gt;
&lt;br /&gt;
* '''incrond''' : un démon (un service qui tourne en tâche de fond)&lt;br /&gt;
* '''incrontab''' : configurer les actions en ligne de commande&lt;br /&gt;
* '''/etc/incron.conf''' : le fichier de configuration principal&lt;br /&gt;
* '''/etc/incron.d/''' : répertoire contenant la définition de fichiers/de répertoires à monitorer&lt;br /&gt;
* '''/etc/incron.{allow,deny}''' (optionnel) : fichier définissant les utilisateurs autorisés à utiliser l’outil&lt;br /&gt;
&lt;br /&gt;
=Fonctionnement=&lt;br /&gt;
Le fonctionnement est proche de cron :&lt;br /&gt;
&lt;br /&gt;
Le démon incrond scanne les fichiers /etc/incron.d/ pour savoir quoi faire en fonction des évènements du système&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
Installer incron&lt;br /&gt;
&lt;br /&gt;
 # apt install incron&lt;br /&gt;
&lt;br /&gt;
=Gérer les autorisations de l'utilisation de incron=&lt;br /&gt;
Si le fichier /etc/incron.allow existe, alors seuls les utilisateurs qui sont dans ce fichier ont le droit d'utiliser incron. Ainsi, il vous faut soit :&lt;br /&gt;
&lt;br /&gt;
Effacer le fichier&lt;br /&gt;
&lt;br /&gt;
 # rm -f  /etc/incron.allow&lt;br /&gt;
&lt;br /&gt;
Ajouter l'utilisateur courant (ou ceux voulus)&lt;br /&gt;
&lt;br /&gt;
 # echo $USER | tee -a /etc/incron.allow&lt;br /&gt;
&lt;br /&gt;
=Configurer les dossiers et les actions à effectuer=&lt;br /&gt;
Lancer incrontab pour assigner des actions en fonction des fichiers/dossiers paramétrés :&lt;br /&gt;
&lt;br /&gt;
 # incrontab -e&lt;br /&gt;
&lt;br /&gt;
Le format de saisie de incrontab est :&lt;br /&gt;
 &amp;lt;chemin&amp;gt; &amp;lt;type d'événement&amp;gt; &amp;lt;commande à exécuter&amp;gt;&lt;br /&gt;
Exemple :&lt;br /&gt;
 /home/mon_user/download IN_CLOSE_WRITE /home/mon_user/mon_script_incron.sh&lt;br /&gt;
&lt;br /&gt;
==Type d'événement==&lt;br /&gt;
&lt;br /&gt;
*'''IN_ACCESS''' : le fichier a été accédé (lecture)&lt;br /&gt;
*'''IN_ATTRIB''' : les métadonnées du fichier ont été modifiées (permissions, timestamp, attributs étendus, etc)&lt;br /&gt;
*'''IN_CLOSE_WRITE''' : fermeture d’un fichier avec écriture. On attend que le fichier soit clôturé, dans notre cas, que le téléchargement             SOIT TERMINE avant de déclencher la commande ou le script&lt;br /&gt;
*'''IN_CLOSE_NOWRITE''' : fermeture d’un fichier sans écriture&lt;br /&gt;
*'''IN_CREATE''' : fichier ou répertoire créé dans un répertoire surveillé. Attention : la commande est déclenchée lorsque le fichier est créé MAIS pas &amp;quot;terminé&amp;quot;. Dans le cas d'un téléchargement qui dure 2 mn dans notre répertoire &amp;quot;download&amp;quot;, la commande se déclencherait dès la création du fichier SANS ATTENDRE LA FIN DU TÉLÉCHARGEMENT. L’opération de déplacement échouerait.&lt;br /&gt;
*'''IN_DELETE''' : fichier ou répertoire supprimé dans un répertoire surveillé&lt;br /&gt;
*''''IN_DELETE_SELF''' : le fichier ou répertoire surveillé est supprimé&lt;br /&gt;
*'''IN_MODIFY''' : le fichier ou répertoire a été modifié&lt;br /&gt;
*'''IN_MOVE_SELF''' : le fichier ou répertoire a été déplacé&lt;br /&gt;
*''''IN_MOVED_FROM''' : un fichier du répertoire surveillé à été déplacé&lt;br /&gt;
*'''IN_MOVED_TO''' : un fichier à été déplacé dans le répertoire surveillé&lt;br /&gt;
*'''IN_ALL_EVENTS''' : combinaison de tous ce qui précède&lt;br /&gt;
*'''IN_MOVE''' : équivalent à IN_MOVED_FROM ou IN_MOVED_TO&lt;br /&gt;
*'''IN_CLOSE''' : équivalent à IN_CLOSE_WRITE ou IN_CLOSE_NOWRITE &lt;br /&gt;
&lt;br /&gt;
==Wildcard==&lt;br /&gt;
*'''$#''' : nom du fichier ou non du dossier sur lequel l’événement est intervenu&lt;br /&gt;
*'''$@''' : chemin complet (dossier) du fichier/répertoire surveillé&lt;br /&gt;
*'''$%''' : nom (textuel) de l’événement intervenu&lt;br /&gt;
*'''$&amp;amp;''' : numéro de l’événement intervenu&lt;br /&gt;
*'''$$''' : le caractère dollar (“$”)&lt;br /&gt;
&lt;br /&gt;
=Prise en compte de la configuration=&lt;br /&gt;
La prise en compte de la configuration ce fait en redemarrant le demon&lt;br /&gt;
&lt;br /&gt;
 # service incron restart&lt;/div&gt;</summary>
		<author><name>Nmorin</name></author>
	</entry>
</feed>