<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1065351&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Détection de fichier => script enclenché]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1065351</link>
		<description><![CDATA[Les sujets les plus récents dans Détection de fichier => script enclenché.]]></description>
		<lastBuildDate>Thu, 11 Oct 2012 22:53:44 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11091931#p11091931</link>
			<description><![CDATA[<div class="quotebox"><cite>Maisondouf a écrit&#160;:</cite><blockquote><div><div class="quotebox"><cite>weezixx a écrit&#160;:</cite><blockquote><div><p>Et la réponse est : D la réponse D</p></div></blockquote></div><p>C&#039;est votre dernier mot ?</p></div></blockquote></div><p>C&#039;est votre ultime bafouille ? ^^</p><p>Je continuerai de voir ça demain ;-)</p><p>Merci encore !</p><p>Ça c&#039;est de la communauté</p>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Thu, 11 Oct 2012 22:53:44 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11091931#p11091931</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11091661#p11091661</link>
			<description><![CDATA[<div class="quotebox"><cite>weezixx a écrit&#160;:</cite><blockquote><div><p>Et la réponse est : D la réponse D</p></div></blockquote></div><p>C&#039;est votre dernier mot ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Maisondouf)]]></author>
			<pubDate>Thu, 11 Oct 2012 22:37:59 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11091661#p11091661</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11091371#p11091371</link>
			<description><![CDATA[<p>Regarde les remarques que j&#039;ai ajoutées en #7. Je pense qu&#039;il faut continuer à surveiller le répertoire, et tester dans la boucle si le fichier est <strong>test123.rar</strong> .</p><div class="codebox"><pre><code>rep=/home/mister_why/Documents/test/
cd &quot;$rep&quot;
inotifywait -mrq -e create --format &quot;%f&quot; &quot;$rep&quot; | while read var; do [[ &quot;$var&quot; == test123.rar ]] &amp;&amp; unrar &quot;$var&quot;; done </code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Thu, 11 Oct 2012 21:55:58 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11091371#p11091371</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11090941#p11090941</link>
			<description><![CDATA[<p>Avec ce code : </p><div class="codebox"><pre><code>inotifywait -mrq -e create --format &quot;%e %w%f&quot; /home/mister_why/Documents/test/ | while read var ; do touch hello_world.txt ; done</code></pre></div><p>Ça fonctionne, ça créé bien hello_world.txt</p><p>Mais si à présent je veux spécifier un fichier ? Comme test123.rar</p><p>Dès que test123.rar apparaît hop il le décompresse</p>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Thu, 11 Oct 2012 21:21:35 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11090941#p11090941</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11090841#p11090841</link>
			<description><![CDATA[<p>Et la réponse est : D la réponse D</p><div class="codebox"><pre><code>CREATE /home/mister_why/Documents/test/test.txt</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Thu, 11 Oct 2012 21:17:38 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11090841#p11090841</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11090591#p11090591</link>
			<description><![CDATA[<p>Je ne connaissais pas <strong>inotify</strong>; je viens de l&#039;installer et de le tester. Pour voir si ça donne un résultat, fais plutôt ceci :</p><div class="codebox"><pre><code>inotifywait -mrq -e create --format &quot;%e %w%f&quot; /home/mister_why/Documents/test/ | while read var ; do echo &quot;$var&quot;; done</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Thu, 11 Oct 2012 21:02:28 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11090591#p11090591</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089971#p11089971</link>
			<description><![CDATA[<p>J&#039;ai jamais utilisé ça, je savais que ça existait, c&#039;est tout.<br />Et suis sur mon tel là donc je peux pas tester.<br />Mais si pingouinux est encore par là, t&#039;es entre de bonnes mains !<br />Sinon je pourrai regarder demain.</p>]]></description>
			<author><![CDATA[dummy@example.com (Postmortem)]]></author>
			<pubDate>Thu, 11 Oct 2012 19:56:55 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089971#p11089971</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089811#p11089811</link>
			<description><![CDATA[<p>@ pingouinux : j&#039;ai du un peu modifier le code </p><div class="codebox"><pre><code>inotifywait -mrq -e CREATE --format %w%f /home/mister_why/Documents/test/ | while read var ; do touch hello_world.txt ; done</code></pre></div><p>et aucun résultat <img src="http://forum.ubuntu-fr.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>@ Postmortem : ton code while fonctionne, tu peux m&#039;aider pour inotify ? </p><p>Merci encore</p>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Thu, 11 Oct 2012 19:44:17 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089811#p11089811</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089741#p11089741</link>
			<description><![CDATA[<p>Salut,<br />Après <strong>read</strong>, c&#039;est un nom de <strong>variable</strong> qui est attendu. Je verrais plutôt quelque chose comme ça :</p><div class="codebox"><pre><code>notifywait -mrq -e CREATE --format %w%f /home/mister_why/Documents/test/test.txt | while read var ; do touch hello_world.txt ; done</code></pre></div><p><span class="bbu">Ajouté</span> :<br />Soit le fichier n&#039;existe pas, et la commande retourne un message d&#039;erreur<br />Soit il existe, et on ne peut pas le créer, donc la commande ne sert à rien</p><p>Si on supprime le fichier avant de le recréer, la commande ne le voit plus</p>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Thu, 11 Oct 2012 19:39:27 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089741#p11089741</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089611#p11089611</link>
			<description><![CDATA[<p>J&#039;ai fait un essaie de inotify, j&#039;ai créé un dossier test, et j&#039;ai demandé qu&#039;à l&#039;apparition du fichier test.txt soit créé le fichier hello_world.txt</p><div class="codebox"><pre><code>notifywait -mrq -e CREATE --format %w%f /home/mister_why/Documents/test/ | while read test.txt ; do touch hello_world.txt ; done</code></pre></div><p>mais ça me répond : </p><div class="codebox"><pre><code>bash: read: « test.txt » : identifiant non valable</code></pre></div><p>pour n&#039;importe quel fichier que je créé (via une autre console), comme test.txt ou test.ii etc …</p>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Thu, 11 Oct 2012 19:31:37 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089611#p11089611</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089511#p11089511</link>
			<description><![CDATA[<p>Tu peux utiliser find ainsi :</p><div class="codebox"><pre><code>while true
do
   find /chemin/de/recherche -name &#039;*.rar&#039; -type f -exec unrar {} \;
   sleep 60
done</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Postmortem)]]></author>
			<pubDate>Thu, 11 Oct 2012 19:23:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089511#p11089511</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089271#p11089271</link>
			<description><![CDATA[<p>Et si je fais un truc du genre : </p><p>je fais une recherche find, que je boucle avec while en booléen ? Tant que la condition n&#039;est pas respectée il continue de chercher, et dès qu&#039;elle est égale à 1 hop il fait le script ?</p>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Thu, 11 Oct 2012 19:02:53 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089271#p11089271</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089021#p11089021</link>
			<description><![CDATA[<p>Salut,<br />Linux c&#039;est fort et ça sait faire ce que tu demandes !<br />Voir <a href="http://info.figarola.fr/2009/11/06/linux-shell-gerer-les-evenements-inotify/">ici</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Postmortem)]]></author>
			<pubDate>Thu, 11 Oct 2012 18:42:03 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11089021#p11089021</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11088671#p11088671</link>
			<description><![CDATA[<p>Linux c&#039;est fort, mais il reste certaines choses à faire à la main...</p><p>Maintenant, si tes fichiers sont toujours au même endroit quand tu les télécharges, tu peux créer une tâche &quot;<a href="http://doc.ubuntu-fr.org/cron">cron</a>&quot; pour surveiller cet endroit et lancer la commande appropriée.</p>]]></description>
			<author><![CDATA[dummy@example.com (Maisondouf)]]></author>
			<pubDate>Thu, 11 Oct 2012 18:14:06 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11088671#p11088671</guid>
		</item>
		<item>
			<title><![CDATA[Détection de fichier => script enclenché]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11088461#p11088461</link>
			<description><![CDATA[<p>Bonjour,</p><p>comment faire pour que dès que, par exemple, j&#039;ai dl un fichier .rar, qu&#039;il soit automatiquement extrait ?</p><p>Ou la même chose pour mes fichiers .xtm qu&#039;ils soient compilées. </p><p>En gros j&#039;aurai aimé faire un script ou ligne de commande pour dire que dès qu&#039;un fichier apparaît telle commande soit lancée. </p><p>Merci encore ;-)</p>]]></description>
			<author><![CDATA[dummy@example.com (weezixx)]]></author>
			<pubDate>Thu, 11 Oct 2012 17:52:56 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11088461#p11088461</guid>
		</item>
	</channel>
</rss>
