<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Troll&#039;s factory &#187; linux</title>
	<atom:link href="http://trollfactory.fr/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://trollfactory.fr</link>
	<description>Geekeries &#38; pensées</description>
	<lastBuildDate>Mon, 09 Jun 2014 19:43:25 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Fedora 16 : Qt4 Failure to read QMAKESPEC conf file</title>
		<link>http://trollfactory.fr/fecora-16-qt4-failure-to-read-qmakespec-conf-file-556</link>
		<comments>http://trollfactory.fr/fecora-16-qt4-failure-to-read-qmakespec-conf-file-556#comments</comments>
		<pubDate>Tue, 06 Dec 2011 18:02:55 +0000</pubDate>
		<dc:creator><![CDATA[Troll]]></dc:creator>
				<category><![CDATA[Astuces Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Non classé]]></category>
		<category><![CDATA[astuces]]></category>
		<category><![CDATA[fc16]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora 16]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[qt]]></category>
		<category><![CDATA[qt4]]></category>
		<category><![CDATA[qtcreator]]></category>

		<guid isPermaLink="false">http://trollfactory.fr/?p=556</guid>
		<description><![CDATA[English readers : see at the bottom of the French version !! Voulant installer Qt4 et QtCreator sur ma fedora 16 toute fraiche, je me suis heurté, lors de la première tentative de compilation, à une erreur pour le moins étonnante (lorsque j&#8217;ai fait &#171;&#160;run qmake&#160;&#187;) : /usr/share/qt4/mkspecs/linux-g++/qmake.conf. Après avoir fait une rapide recherche infructueuse [...]]]></description>
				<content:encoded><![CDATA[<p><span style="text-decoration: underline; color: #0000ff; font-size: 120%;"><strong>English readers : see at the bottom of the French version !! </strong></span></p>
<p>Voulant installer Qt4 et QtCreator sur ma fedora 16 toute fraiche, je me suis heurté, lors de la première tentative de compilation, à une erreur pour le moins étonnante (lorsque j&rsquo;ai fait &laquo;&nbsp;run qmake&nbsp;&raquo;) :</p>
<p><code>/usr/share/qt4/mkspecs/linux-g++/qmake.conf.</code></p>
<p>Après avoir fait une rapide recherche infructueuse sur le net, j&rsquo;ai fait une petite recherche sur mon disque dur sur le terme &laquo;&nbsp;mkspecs&nbsp;&raquo; et je trouve qu&rsquo;il se trouve en fait dans <strong>/usr/lib64/qt4/mkspecs</strong>.<br />
Dans une tentative un peu naïve, je tente le lien symbolique, me disant que ça doit encore être une histoire de 64bits pas super bien géré :</p>
<p><code>sudo ln -s /usr/lib64/qt4/mkspecs /usr/share/qt4/mkspecs</code></p>
<p>Eh bien&#8230; ça marche !! Problème semble résolu, on dirait bien que ça compile même ! <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /><br />
Avis aux amateurs qui auront le même souci, donc&#8230; <img src="//trollfactory.fr/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /> Et si ça ne résoud pas le souci mais que vous avez une autre solution, ou que vous voulez apporter une quelconque info supplémentaire, ajoutez un commentaire !!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- English Version &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Willing to install Qt4 &amp; QtCreator on my fresh installed fedora 16, I have gone into some trouble&#8230;, at my first compilation attempt (&laquo;&nbsp;run qmake&nbsp;&raquo; attempt, actually), a surprising error pops-up :</p>
<p><code>/usr/share/qt4/mkspecs/linux-g++/qmake.conf.</code></p>
<p>After a quick and unsuccessful search on Google, I decided to make a quick search on my hard disk on &laquo;&nbsp;mkspecs&nbsp;&raquo; and I found that it seems to be in fact in <strong>/usr/lib64/qt4/mkspecs</strong>.<br />
In a naive attempt, I try the symlink, thinking of a 64bits a bit bad-managed by the libraries paths :</p>
<p><code>sudo ln -s /usr/lib64/qt4/mkspecs /usr/share/qt4/mkspecs</code></p>
<p>Well&#8230; it works !! Issue solved, it seems, it even compiles ! <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /><br />
If you have any additional information / solution, please feel free to add it in the comments below !</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
Share and Enjoy:<a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/printfriendly.png" class="sociable-img sociable-hovers" title="Print" alt="Print" /></a><a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/pdf.png" class="sociable-img sociable-hovers" title="PDF" alt="PDF" /></a><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file%20-%20http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;t=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a><a rel="nofollow" target="_blank"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;title=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file&amp;source=The+Troll%26%23039%3Bs+factory+Geekeries+%26amp%3B+pens%C3%A9es&amp;summary=English%20readers%20%3A%20see%20at%20the%20bottom%20of%20the%20French%20version%20%21%21%20%0D%0A%0D%0AVoulant%20installer%20Qt4%20et%20QtCreator%20sur%20ma%20fedora%2016%20toute%20fraiche%2C%20je%20me%20suis%20heurt%C3%A9%2C%20lors%20de%20la%20premi%C3%A8re%20tentative%20de%20compilation%2C%20%C3%A0%20une%20erreur%20pour%20le%20moins%20%C3%A9tonnante%20%28lorsque%20j%27a" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/linkedin.png" class="sociable-img sociable-hovers" title="LinkedIn" alt="LinkedIn" /></a><a rel="nofollow" target="_blank"  href="http://trollfactory.fr/feed" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/rss.png" class="sociable-img sociable-hovers" title="RSS" alt="RSS" /></a><a rel="nofollow" target="_blank"  href="http://www.wikio.fr/vote?url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/wikio.png" class="sociable-img sociable-hovers" title="Wikio FR" alt="Wikio FR" /></a><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;title=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file&amp;bodytext=English%20readers%20%3A%20see%20at%20the%20bottom%20of%20the%20French%20version%20%21%21%20%0D%0A%0D%0AVoulant%20installer%20Qt4%20et%20QtCreator%20sur%20ma%20fedora%2016%20toute%20fraiche%2C%20je%20me%20suis%20heurt%C3%A9%2C%20lors%20de%20la%20premi%C3%A8re%20tentative%20de%20compilation%2C%20%C3%A0%20une%20erreur%20pour%20le%20moins%20%C3%A9tonnante%20%28lorsque%20j%27a" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;title=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file&amp;notes=English%20readers%20%3A%20see%20at%20the%20bottom%20of%20the%20French%20version%20%21%21%20%0D%0A%0D%0AVoulant%20installer%20Qt4%20et%20QtCreator%20sur%20ma%20fedora%2016%20toute%20fraiche%2C%20je%20me%20suis%20heurt%C3%A9%2C%20lors%20de%20la%20premi%C3%A8re%20tentative%20de%20compilation%2C%20%C3%A0%20une%20erreur%20pour%20le%20moins%20%C3%A9tonnante%20%28lorsque%20j%27a" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;title=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file&amp;annotation=English%20readers%20%3A%20see%20at%20the%20bottom%20of%20the%20French%20version%20%21%21%20%0D%0A%0D%0AVoulant%20installer%20Qt4%20et%20QtCreator%20sur%20ma%20fedora%2016%20toute%20fraiche%2C%20je%20me%20suis%20heurt%C3%A9%2C%20lors%20de%20la%20premi%C3%A8re%20tentative%20de%20compilation%2C%20%C3%A0%20une%20erreur%20pour%20le%20moins%20%C3%A9tonnante%20%28lorsque%20j%27a" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a><a rel="nofollow" target="_blank"  href="http://technorati.com/faves?add=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/technorati.png" class="sociable-img sociable-hovers" title="Technorati" alt="Technorati" /></a><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;title=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a><a rel="nofollow" target="_blank"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;title=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/live.png" class="sociable-img sociable-hovers" title="Live" alt="Live" /></a><a rel="nofollow" target="_blank"  href="http://www.netvibes.com/share?title=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file&amp;url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/netvibes.png" class="sociable-img sociable-hovers" title="Netvibes" alt="Netvibes" /></a><a rel="nofollow" target="_blank"  href="http://www.scoopeo.com/scoop/new?newurl=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;title=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/scoopeo.png" class="sociable-img sociable-hovers" title="Scoopeo" alt="Scoopeo" /></a><a rel="nofollow" target="_blank"  href="http://www.viadeo.com/shareit/share/?url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&title=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file&urllanguage=fr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/viadeo.png" class="sociable-img sociable-hovers" title="viadeo FR" alt="viadeo FR" /></a><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a><a rel="nofollow" target="_blank"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;t=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/myspace.png" class="sociable-img sociable-hovers" title="MySpace" alt="MySpace" /></a><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;title=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a><a rel="nofollow" target="_blank"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Ftrollfactory.fr%2Ffecora-16-qt4-failure-to-read-qmakespec-conf-file-556&amp;submitHeadline=Fedora%2016%20%3A%20Qt4%20Failure%20to%20read%20QMAKESPEC%20conf%20file&amp;submitSummary=English%20readers%20%3A%20see%20at%20the%20bottom%20of%20the%20French%20version%20%21%21%20%0D%0A%0D%0AVoulant%20installer%20Qt4%20et%20QtCreator%20sur%20ma%20fedora%2016%20toute%20fraiche%2C%20je%20me%20suis%20heurt%C3%A9%2C%20lors%20de%20la%20premi%C3%A8re%20tentative%20de%20compilation%2C%20%C3%A0%20une%20erreur%20pour%20le%20moins%20%C3%A9tonnante%20%28lorsque%20j%27a&amp;submitCategory=science&amp;submitAssetType=text" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/yahoobuzz.png" class="sociable-img sociable-hovers" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://trollfactory.fr/fecora-16-qt4-failure-to-read-qmakespec-conf-file-556/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wifi sous Fedora 16 avec un Dell Vostro 1510</title>
		<link>http://trollfactory.fr/wifi-sous-fedora-16-avec-un-dell-vostro-1510-546</link>
		<comments>http://trollfactory.fr/wifi-sous-fedora-16-avec-un-dell-vostro-1510-546#comments</comments>
		<pubDate>Fri, 18 Nov 2011 08:46:07 +0000</pubDate>
		<dc:creator><![CDATA[Troll]]></dc:creator>
				<category><![CDATA[Astuces Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[astuces]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[fc16]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora 16]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://trollfactory.fr/?p=546</guid>
		<description><![CDATA[Ayant récemment installé Fedora 16 (FC16) tout marchait bien&#8230; jusqu&#8217;à une malencontreuse mise à jour ! (laquelle, je ne sais pas, vu leur nombre !). Et là, plus de wifi&#8230; Après avoir cherché des heures et des heures à bidouiller avec modprobe etc&#8230; j&#8217;ai regardé mon dmesg : [ 239.100501] iwl3945 0000:06:00.0: iwlwifi-3945-2.ucode firmware file [...]]]></description>
				<content:encoded><![CDATA[<p>Ayant récemment installé Fedora 16 (FC16) tout marchait bien&#8230; jusqu&rsquo;à une malencontreuse mise à jour ! (laquelle, je ne sais pas, vu leur nombre !).</p>
<p>Et là, plus de wifi&#8230;</p>
<p>Après avoir cherché des heures et des heures à bidouiller avec modprobe etc&#8230; j&rsquo;ai regardé mon dmesg :</p>
<p><code>[  239.100501] iwl3945 0000:06:00.0: iwlwifi-3945-2.ucode firmware file req failed: -2<br />
[  239.103276] iwl3945 0000:06:00.0: iwlwifi-3945-1.ucode firmware file req failed: -2<br />
[  239.103281] iwl3945 0000:06:00.0: Could not read microcode: -2<br />
[  345.378949] iwl3945 0000:06:00.0: iwlwifi-3945-2.ucode firmware file req failed: -2<br />
[  345.382280] iwl3945 0000:06:00.0: iwlwifi-3945-1.ucode firmware file req failed: -2<br />
[  345.382284] iwl3945 0000:06:00.0: Could not read microcode: -2</code></p>
<p>J&rsquo;ai donc cherché si un driver correspondait, visiblement, je n&rsquo;avais pas le bon ! (alors que lsmod me renvoit bien iwl3945 !)</p>
<p><code>yum search 3945<br />
Repository google-chrome is listed more than once in the configuration<br />
===================================================================== N/S Matched: 3945 =====================================================================<br />
iwl3945-firmware.noarch : Firmware for Intel® PRO/Wireless 3945 A/B/G network adaptors</code></p>
<p>Il faut donc installer le paquet &laquo;&nbsp;iwl3945-firmware&nbsp;&raquo; :</p>
<p>(en root)<br />
<code>yum install iwl3945-firmware</code></p>
<p>Et voilà ! Maintenant, vous faites :</p>
<p><code>su<br />
ifup wlan0</code></p>
<p>Et votre LED Wifi va enfin, enfin, enfin s&rsquo;allumer <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> .</p>
Share and Enjoy:<a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/printfriendly.png" class="sociable-img sociable-hovers" title="Print" alt="Print" /></a><a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/pdf.png" class="sociable-img sociable-hovers" title="PDF" alt="PDF" /></a><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510%20-%20http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;t=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a><a rel="nofollow" target="_blank"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;title=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510&amp;source=The+Troll%26%23039%3Bs+factory+Geekeries+%26amp%3B+pens%C3%A9es&amp;summary=Ayant%20r%C3%A9cemment%20install%C3%A9%20Fedora%2016%20%28FC16%29%20tout%20marchait%20bien...%20jusqu%27%C3%A0%20une%20malencontreuse%20mise%20%C3%A0%20jour%20%21%20%28laquelle%2C%20je%20ne%20sais%20pas%2C%20vu%20leur%20nombre%20%21%29.%0D%0A%0D%0AEt%20l%C3%A0%2C%20plus%20de%20wifi...%0D%0A%0D%0AApr%C3%A8s%20avoir%20cherch%C3%A9%20des%20heures%20et%20des%20heures%20%C3%A0%20bidouiller%20avec" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/linkedin.png" class="sociable-img sociable-hovers" title="LinkedIn" alt="LinkedIn" /></a><a rel="nofollow" target="_blank"  href="http://trollfactory.fr/feed" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/rss.png" class="sociable-img sociable-hovers" title="RSS" alt="RSS" /></a><a rel="nofollow" target="_blank"  href="http://www.wikio.fr/vote?url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/wikio.png" class="sociable-img sociable-hovers" title="Wikio FR" alt="Wikio FR" /></a><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;title=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510&amp;bodytext=Ayant%20r%C3%A9cemment%20install%C3%A9%20Fedora%2016%20%28FC16%29%20tout%20marchait%20bien...%20jusqu%27%C3%A0%20une%20malencontreuse%20mise%20%C3%A0%20jour%20%21%20%28laquelle%2C%20je%20ne%20sais%20pas%2C%20vu%20leur%20nombre%20%21%29.%0D%0A%0D%0AEt%20l%C3%A0%2C%20plus%20de%20wifi...%0D%0A%0D%0AApr%C3%A8s%20avoir%20cherch%C3%A9%20des%20heures%20et%20des%20heures%20%C3%A0%20bidouiller%20avec" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;title=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510&amp;notes=Ayant%20r%C3%A9cemment%20install%C3%A9%20Fedora%2016%20%28FC16%29%20tout%20marchait%20bien...%20jusqu%27%C3%A0%20une%20malencontreuse%20mise%20%C3%A0%20jour%20%21%20%28laquelle%2C%20je%20ne%20sais%20pas%2C%20vu%20leur%20nombre%20%21%29.%0D%0A%0D%0AEt%20l%C3%A0%2C%20plus%20de%20wifi...%0D%0A%0D%0AApr%C3%A8s%20avoir%20cherch%C3%A9%20des%20heures%20et%20des%20heures%20%C3%A0%20bidouiller%20avec" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;title=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510&amp;annotation=Ayant%20r%C3%A9cemment%20install%C3%A9%20Fedora%2016%20%28FC16%29%20tout%20marchait%20bien...%20jusqu%27%C3%A0%20une%20malencontreuse%20mise%20%C3%A0%20jour%20%21%20%28laquelle%2C%20je%20ne%20sais%20pas%2C%20vu%20leur%20nombre%20%21%29.%0D%0A%0D%0AEt%20l%C3%A0%2C%20plus%20de%20wifi...%0D%0A%0D%0AApr%C3%A8s%20avoir%20cherch%C3%A9%20des%20heures%20et%20des%20heures%20%C3%A0%20bidouiller%20avec" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a><a rel="nofollow" target="_blank"  href="http://technorati.com/faves?add=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/technorati.png" class="sociable-img sociable-hovers" title="Technorati" alt="Technorati" /></a><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;title=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a><a rel="nofollow" target="_blank"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;title=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/live.png" class="sociable-img sociable-hovers" title="Live" alt="Live" /></a><a rel="nofollow" target="_blank"  href="http://www.netvibes.com/share?title=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/netvibes.png" class="sociable-img sociable-hovers" title="Netvibes" alt="Netvibes" /></a><a rel="nofollow" target="_blank"  href="http://www.scoopeo.com/scoop/new?newurl=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;title=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/scoopeo.png" class="sociable-img sociable-hovers" title="Scoopeo" alt="Scoopeo" /></a><a rel="nofollow" target="_blank"  href="http://www.viadeo.com/shareit/share/?url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&title=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510&urllanguage=fr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/viadeo.png" class="sociable-img sociable-hovers" title="viadeo FR" alt="viadeo FR" /></a><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a><a rel="nofollow" target="_blank"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;t=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/myspace.png" class="sociable-img sociable-hovers" title="MySpace" alt="MySpace" /></a><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;title=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a><a rel="nofollow" target="_blank"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Ftrollfactory.fr%2Fwifi-sous-fedora-16-avec-un-dell-vostro-1510-546&amp;submitHeadline=Wifi%20sous%20Fedora%2016%20avec%20un%20Dell%20Vostro%201510&amp;submitSummary=Ayant%20r%C3%A9cemment%20install%C3%A9%20Fedora%2016%20%28FC16%29%20tout%20marchait%20bien...%20jusqu%27%C3%A0%20une%20malencontreuse%20mise%20%C3%A0%20jour%20%21%20%28laquelle%2C%20je%20ne%20sais%20pas%2C%20vu%20leur%20nombre%20%21%29.%0D%0A%0D%0AEt%20l%C3%A0%2C%20plus%20de%20wifi...%0D%0A%0D%0AApr%C3%A8s%20avoir%20cherch%C3%A9%20des%20heures%20et%20des%20heures%20%C3%A0%20bidouiller%20avec&amp;submitCategory=science&amp;submitAssetType=text" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/yahoobuzz.png" class="sociable-img sociable-hovers" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://trollfactory.fr/wifi-sous-fedora-16-avec-un-dell-vostro-1510-546/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>S&#8217;identifier en SSH sans mot de passe à l&#8217;aide d&#8217;une clé RSA &#8212; SSHA Authentication without password using a RSA key</title>
		<link>http://trollfactory.fr/sidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382</link>
		<comments>http://trollfactory.fr/sidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382#comments</comments>
		<pubDate>Mon, 02 May 2011 11:55:36 +0000</pubDate>
		<dc:creator><![CDATA[Troll]]></dc:creator>
				<category><![CDATA[Administration serveur]]></category>
		<category><![CDATA[astuces]]></category>
		<category><![CDATA[Geekeries]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[clé publique]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[infogérance]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rsa]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://trollfactory.fr/?p=382</guid>
		<description><![CDATA[Non seulement c&#8217;est plus sécurisé, mais en plus c&#8217;est quand même carrément plus pratique, voici comment configurer en 30 secondes (top chrono !) votre accès SSH sur votre serveur favoris à l&#8217;aide d&#8217;une clé RSA plutôt avec qu&#8217;un vieux mot de passe soit pas sécurisé, soit que vous n&#8217;arrivez pas à retenir : Générer la [...]]]></description>
				<content:encoded><![CDATA[<p>Non seulement c&rsquo;est plus sécurisé, mais en plus c&rsquo;est quand même carrément plus pratique,<strong> voici comment configurer en 30 secondes</strong> (top chrono !) votre accès SSH sur votre serveur favoris à l&rsquo;aide d&rsquo;une clé RSA plutôt avec qu&rsquo;un vieux mot de passe soit pas sécurisé, soit que vous n&rsquo;arrivez pas à retenir :</p>
<p><strong>Générer la clé : 10 secondes</strong><br />
<code>$ ssh-keygen -t rsa<br />
Generating public/private rsa key pair.<br />
Enter file in which to save the key (/home/thouveni/.ssh/id_rsa):<br />
Enter passphrase (empty for no passphrase):<br />
Enter same passphrase again:<br />
Your identification has been saved in /home/[utilisateur]/.ssh/id_rsa.<br />
Your public key has been saved in /home/[utilisateur]/.ssh/id_rsa.pub.<br />
The key fingerprint is:</code></p>
<p><strong>La &laquo;&nbsp;propager&nbsp;&raquo; : 10 secondes :</strong><br />
<code>$ cat $HOME/.ssh/id_rsa.pub | ssh [utilisateur@]machine "mkdir -p .ssh; chmod 700 .ssh; cat &gt;&gt; .ssh/authorized_keys"</code><br />
<strong><em>Note : si vous utilisez un port particulier (comme le port 42 par exemple), il faut rajouter &laquo;&nbsp;-p 42&Prime; AVANT la commande entre guillemets, et APRÈS &laquo;&nbsp;[utilisateur]@machine&nbsp;&raquo; (entre les deux)</em></strong></p>
<p><strong>Tester que ça marche : 10 secondes</strong><br />
<code>ssh [utilisateur@]machine</code></p>
<p>Enjoy <img src="//trollfactory.fr/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /> </p>
<p><span style="font-size:1.25em">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; For our English readers : &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></p>
<p>Not only it&rsquo;s more secured, but much more praticle as well, <strong>here is how to configure in 30 seconds</strong> (timer in hand !) your SSH access to your favourite server using a RSA key instead of an old-fashionned password which is either not secured either secured but impossible to remember !</p>
<p><strong>Generating the key: 10 seconds</strong><br />
<code>$ ssh-keygen -t rsa<br />
Generating public/private rsa key pair.<br />
Enter file in which to save the key (/home/[user]/.ssh/id_rsa):<br />
Enter passphrase (empty for no passphrase):<br />
Enter same passphrase again:<br />
Your identification has been saved in /home/[user]/.ssh/id_rsa.<br />
Your public key has been saved in /home/[user]/.ssh/id_rsa.pub.<br />
The key fingerprint is:</code></p>
<p><strong>&laquo;&nbsp;Broadcasting&nbsp;&raquo; it: 10 seconds</strong><br />
<code>$ cat $HOME/.ssh/id_rsa.pub | ssh [user@]host "mkdir -p .ssh; chmod 700 .ssh; cat &gt;&gt; .ssh/authorized_keys"</code><br />
<strong><em>Note : if you use a specific port (as for instance the 42 one), you have to add &laquo;&nbsp;-p 42&Prime; BEFORE the command in quotes, and AFTER &laquo;&nbsp;[user]@host&nbsp;&raquo; (between the two)</em></strong></p>
<p><strong>Testing it works: 10 seconds</strong><br />
<code>ssh [user@]host </code></p>
<p>Enjoy <img src="//trollfactory.fr/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /> </p>
Share and Enjoy:<a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/printfriendly.png" class="sociable-img sociable-hovers" title="Print" alt="Print" /></a><a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/pdf.png" class="sociable-img sociable-hovers" title="PDF" alt="PDF" /></a><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key%20-%20http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;t=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a><a rel="nofollow" target="_blank"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;title=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key&amp;source=The+Troll%26%23039%3Bs+factory+Geekeries+%26amp%3B+pens%C3%A9es&amp;summary=Non%20seulement%20c%27est%20plus%20s%C3%A9curis%C3%A9%2C%20mais%20en%20plus%20c%27est%20quand%20m%C3%AAme%20carr%C3%A9ment%20plus%20pratique%2C%20voici%20comment%20configurer%20en%2030%20secondes%20%28top%20chrono%20%21%29%20votre%20acc%C3%A8s%20SSH%20sur%20votre%20serveur%20favoris%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20plut%C3%B4t%20avec%20qu%27un%20vieux%20mot%20de%20p" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/linkedin.png" class="sociable-img sociable-hovers" title="LinkedIn" alt="LinkedIn" /></a><a rel="nofollow" target="_blank"  href="http://trollfactory.fr/feed" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/rss.png" class="sociable-img sociable-hovers" title="RSS" alt="RSS" /></a><a rel="nofollow" target="_blank"  href="http://www.wikio.fr/vote?url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/wikio.png" class="sociable-img sociable-hovers" title="Wikio FR" alt="Wikio FR" /></a><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;title=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key&amp;bodytext=Non%20seulement%20c%27est%20plus%20s%C3%A9curis%C3%A9%2C%20mais%20en%20plus%20c%27est%20quand%20m%C3%AAme%20carr%C3%A9ment%20plus%20pratique%2C%20voici%20comment%20configurer%20en%2030%20secondes%20%28top%20chrono%20%21%29%20votre%20acc%C3%A8s%20SSH%20sur%20votre%20serveur%20favoris%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20plut%C3%B4t%20avec%20qu%27un%20vieux%20mot%20de%20p" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;title=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key&amp;notes=Non%20seulement%20c%27est%20plus%20s%C3%A9curis%C3%A9%2C%20mais%20en%20plus%20c%27est%20quand%20m%C3%AAme%20carr%C3%A9ment%20plus%20pratique%2C%20voici%20comment%20configurer%20en%2030%20secondes%20%28top%20chrono%20%21%29%20votre%20acc%C3%A8s%20SSH%20sur%20votre%20serveur%20favoris%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20plut%C3%B4t%20avec%20qu%27un%20vieux%20mot%20de%20p" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;title=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key&amp;annotation=Non%20seulement%20c%27est%20plus%20s%C3%A9curis%C3%A9%2C%20mais%20en%20plus%20c%27est%20quand%20m%C3%AAme%20carr%C3%A9ment%20plus%20pratique%2C%20voici%20comment%20configurer%20en%2030%20secondes%20%28top%20chrono%20%21%29%20votre%20acc%C3%A8s%20SSH%20sur%20votre%20serveur%20favoris%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20plut%C3%B4t%20avec%20qu%27un%20vieux%20mot%20de%20p" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a><a rel="nofollow" target="_blank"  href="http://technorati.com/faves?add=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/technorati.png" class="sociable-img sociable-hovers" title="Technorati" alt="Technorati" /></a><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;title=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a><a rel="nofollow" target="_blank"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;title=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/live.png" class="sociable-img sociable-hovers" title="Live" alt="Live" /></a><a rel="nofollow" target="_blank"  href="http://www.netvibes.com/share?title=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/netvibes.png" class="sociable-img sociable-hovers" title="Netvibes" alt="Netvibes" /></a><a rel="nofollow" target="_blank"  href="http://www.scoopeo.com/scoop/new?newurl=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;title=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/scoopeo.png" class="sociable-img sociable-hovers" title="Scoopeo" alt="Scoopeo" /></a><a rel="nofollow" target="_blank"  href="http://www.viadeo.com/shareit/share/?url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&title=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key&urllanguage=fr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/viadeo.png" class="sociable-img sociable-hovers" title="viadeo FR" alt="viadeo FR" /></a><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a><a rel="nofollow" target="_blank"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;t=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/myspace.png" class="sociable-img sociable-hovers" title="MySpace" alt="MySpace" /></a><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;title=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a><a rel="nofollow" target="_blank"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Ftrollfactory.fr%2Fsidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382&amp;submitHeadline=S%27identifier%20en%20SSH%20sans%20mot%20de%20passe%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20--%20SSHA%20Authentication%20without%20password%20using%20a%20RSA%20key&amp;submitSummary=Non%20seulement%20c%27est%20plus%20s%C3%A9curis%C3%A9%2C%20mais%20en%20plus%20c%27est%20quand%20m%C3%AAme%20carr%C3%A9ment%20plus%20pratique%2C%20voici%20comment%20configurer%20en%2030%20secondes%20%28top%20chrono%20%21%29%20votre%20acc%C3%A8s%20SSH%20sur%20votre%20serveur%20favoris%20%C3%A0%20l%27aide%20d%27une%20cl%C3%A9%20RSA%20plut%C3%B4t%20avec%20qu%27un%20vieux%20mot%20de%20p&amp;submitCategory=science&amp;submitAssetType=text" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/yahoobuzz.png" class="sociable-img sociable-hovers" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://trollfactory.fr/sidentifier-en-ssh-sans-mot-de-passe-a-laide-dune-cle-rsa-ssha-authentication-without-password-using-a-rsa-key-382/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Utiliser buildconf avec la version autoconf de son choix // Use buildconf with a specific autoconf version</title>
		<link>http://trollfactory.fr/utiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314</link>
		<comments>http://trollfactory.fr/utiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314#comments</comments>
		<pubDate>Sat, 27 Nov 2010 12:35:09 +0000</pubDate>
		<dc:creator><![CDATA[Troll]]></dc:creator>
				<category><![CDATA[Administration serveur]]></category>
		<category><![CDATA[astuces]]></category>
		<category><![CDATA[Geekeries]]></category>
		<category><![CDATA[Scripts, astuces, dév. web]]></category>
		<category><![CDATA[2.13]]></category>
		<category><![CDATA[autoconf]]></category>
		<category><![CDATA[buildconf]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[specific version]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[version donnée de autoconf]]></category>

		<guid isPermaLink="false">http://trollfactory.fr/?p=314</guid>
		<description><![CDATA[As usual, for international readers, the english version is below, at the end of the French version Alors, on va encore m&#8217;accuser de publier que des billets geeks, et court pour celui-ci en plus, mais c&#8217;est tellement galère à chercher sur le net, que je ne peux m&#8217;empêcher de partager cette astuce avec vous Passons [...]]]></description>
				<content:encoded><![CDATA[<p><em><strong>As usual, for international readers, the english version is below, at the end of the French version <img src="//trollfactory.fr/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley" /></strong></em></p>
<p>Alors, on va encore m&rsquo;accuser de publier que des billets geeks, et court pour celui-ci en plus, mais c&rsquo;est tellement galère à chercher sur le net, que je ne peux m&rsquo;empêcher de partager cette astuce avec vous <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
<p>Passons aux choses intéressantes : Il peut être intéressant, voire indispensable (et ça vous intéressera majoritairement dans le cas où c&rsquo;est indispensable, n&rsquo;est-ce pas <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> ) de pouvoir utiliser une vieille version de autoconf, notamment la fameuse 2.13, à la place votre super version hyper à jour utilisée par votre système GNU/Linux. Cependant, la question toute bête : bordel comment on fait pour dire à buildconf d&rsquo;utiliser une autre version que celle par défaut du système ?</p>
<p>Eh bien, si vous avez passé une heure à chercher sur internet avant d&rsquo;atterrir ici, vous allez être peut-être un peu déçu par la simplicité de la chose, mais bon, on n&rsquo;échappe pas aux lois de Murphy ! :</p>
<p><code>export PHP_AUTOCONF=`which autoconf-2.13`</code></p>
<p><em>Note : ceci est l&rsquo;exemple pour la compilation de PHP, pour la compilation d&rsquo;un autre programme cela ressemblera très certainement à cela, je ne peux cependant pas donner de généralité !</em></p>
<p><strong>Voilà c&rsquo;est fini</strong>. Il suffit de taper cela dans votre console juste avant d&rsquo;exécuter la commande &laquo;&nbsp;./builconf&nbsp;&raquo; (ou généralement &laquo;&nbsp;./buildconf &#8211;force&nbsp;&raquo; mais peu importe). <strong><span style="color: #ff0000;">Attention, cependant, vous devez taper cette commande et celle du buildconf dans la même console, évidemment.</span></strong></p>
<p>J&rsquo;espère que vous vous sentez soulagés <img src="//trollfactory.fr/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley" /> Notamment si vous étiez en train d&rsquo;essayer d&rsquo;installer&#8230;humm&#8230; php depuis les sources ? <img src="//trollfactory.fr/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley" /></p>
<p>Merci à <a href="http://blog.mageekbox.net/?post/2010/10/11/Comment-utiliser-l-autoconf-de-son-choix-pour-compiler-PHP" target="_blank">MaGeekGuy</a> pour l&rsquo;astuce <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<span id="more-314"></span></p>
<p>Well, I&rsquo;m going to be again accused to publish only geek articles, and moreover, short, for this one, but it&rsquo;s such a real pain to find that on the Internet, then I can&rsquo;t resist to share it with you folks <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
<p>Interesting things now : It can be useful, not to say essential (and it will interest you more in the case it&rsquo;s essential, won&rsquo;t it <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> ) to be able to use an old version of autoconf, for exemple the famous 2.13, instead of your state-of-the-heart version used by default by your GNU/Linux operating system. However, what a stupid question : how the hell do you explain to buildconf that it must use an older version instead of the default one ?</p>
<p>Well, if you&rsquo;ve just spent about an hour searching on the Internet before coming here, you may be a bit disapointed by the simplicity of the solution. But, after all, no one escape from Murphy&rsquo;s laws ! :</p>
<p><code>export PHP_AUTOCONF=`which autoconf-2.13`</code></p>
<p><em>NB : this is an example for PHP compilation, for other soft compilation it will certainly be much like that, but I can&rsquo;t exhibate a general case here.</em></p>
<p><strong>Voilà, it&rsquo;s over !</strong> You now only need to type that in your shell just before the &laquo;&nbsp;./buildconf&nbsp;&raquo; command (or more often &laquo;&nbsp;./buildconf &#8211;force&nbsp;&raquo; but it doesn&rsquo;t really matter). <strong><span style="color: #ff0000;">Beware, however, you must type this command in the same shell as the buildconf one, obviously.</span></strong></p>
<p>I hope you feel distressed <img src="//trollfactory.fr/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley" /> Specifically if you were trying to install&#8230;well&#8230; php from the sources ? <img src="//trollfactory.fr/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley" /></p>
<p>Thanks to <a href="http://blog.mageekbox.net/?post/2010/10/11/Comment-utiliser-l-autoconf-de-son-choix-pour-compiler-PHP" target="_blank">MaGeekGuy</a> for this tip <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley" /> .</p>
Share and Enjoy:<a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/printfriendly.png" class="sociable-img sociable-hovers" title="Print" alt="Print" /></a><a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/pdf.png" class="sociable-img sociable-hovers" title="PDF" alt="PDF" /></a><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version%20-%20http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;t=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a><a rel="nofollow" target="_blank"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;title=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version&amp;source=The+Troll%26%23039%3Bs+factory+Geekeries+%26amp%3B+pens%C3%A9es&amp;summary=As%20usual%2C%20for%20international%20readers%2C%20the%20english%20version%20is%20below%2C%20at%20the%20end%20of%20the%20French%20version%20%3B-%29%0D%0A%0D%0AAlors%2C%20on%20va%20encore%20m%27accuser%20de%20publier%20que%20des%20billets%20geeks%2C%20et%20court%20pour%20celui-ci%20en%20plus%2C%20mais%20c%27est%20tellement%20gal%C3%A8re%20%C3%A0%20chercher%20sur%20le" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/linkedin.png" class="sociable-img sociable-hovers" title="LinkedIn" alt="LinkedIn" /></a><a rel="nofollow" target="_blank"  href="http://trollfactory.fr/feed" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/rss.png" class="sociable-img sociable-hovers" title="RSS" alt="RSS" /></a><a rel="nofollow" target="_blank"  href="http://www.wikio.fr/vote?url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/wikio.png" class="sociable-img sociable-hovers" title="Wikio FR" alt="Wikio FR" /></a><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;title=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version&amp;bodytext=As%20usual%2C%20for%20international%20readers%2C%20the%20english%20version%20is%20below%2C%20at%20the%20end%20of%20the%20French%20version%20%3B-%29%0D%0A%0D%0AAlors%2C%20on%20va%20encore%20m%27accuser%20de%20publier%20que%20des%20billets%20geeks%2C%20et%20court%20pour%20celui-ci%20en%20plus%2C%20mais%20c%27est%20tellement%20gal%C3%A8re%20%C3%A0%20chercher%20sur%20le" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;title=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version&amp;notes=As%20usual%2C%20for%20international%20readers%2C%20the%20english%20version%20is%20below%2C%20at%20the%20end%20of%20the%20French%20version%20%3B-%29%0D%0A%0D%0AAlors%2C%20on%20va%20encore%20m%27accuser%20de%20publier%20que%20des%20billets%20geeks%2C%20et%20court%20pour%20celui-ci%20en%20plus%2C%20mais%20c%27est%20tellement%20gal%C3%A8re%20%C3%A0%20chercher%20sur%20le" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;title=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version&amp;annotation=As%20usual%2C%20for%20international%20readers%2C%20the%20english%20version%20is%20below%2C%20at%20the%20end%20of%20the%20French%20version%20%3B-%29%0D%0A%0D%0AAlors%2C%20on%20va%20encore%20m%27accuser%20de%20publier%20que%20des%20billets%20geeks%2C%20et%20court%20pour%20celui-ci%20en%20plus%2C%20mais%20c%27est%20tellement%20gal%C3%A8re%20%C3%A0%20chercher%20sur%20le" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a><a rel="nofollow" target="_blank"  href="http://technorati.com/faves?add=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/technorati.png" class="sociable-img sociable-hovers" title="Technorati" alt="Technorati" /></a><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;title=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a><a rel="nofollow" target="_blank"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;title=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/live.png" class="sociable-img sociable-hovers" title="Live" alt="Live" /></a><a rel="nofollow" target="_blank"  href="http://www.netvibes.com/share?title=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version&amp;url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/netvibes.png" class="sociable-img sociable-hovers" title="Netvibes" alt="Netvibes" /></a><a rel="nofollow" target="_blank"  href="http://www.scoopeo.com/scoop/new?newurl=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;title=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/scoopeo.png" class="sociable-img sociable-hovers" title="Scoopeo" alt="Scoopeo" /></a><a rel="nofollow" target="_blank"  href="http://www.viadeo.com/shareit/share/?url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&title=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version&urllanguage=fr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/viadeo.png" class="sociable-img sociable-hovers" title="viadeo FR" alt="viadeo FR" /></a><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a><a rel="nofollow" target="_blank"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;t=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/myspace.png" class="sociable-img sociable-hovers" title="MySpace" alt="MySpace" /></a><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;title=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a><a rel="nofollow" target="_blank"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Ftrollfactory.fr%2Futiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314&amp;submitHeadline=Utiliser%20buildconf%20avec%20la%20version%20autoconf%20de%20son%20choix%20%2F%2F%20Use%20buildconf%20with%20a%20specific%20autoconf%20version&amp;submitSummary=As%20usual%2C%20for%20international%20readers%2C%20the%20english%20version%20is%20below%2C%20at%20the%20end%20of%20the%20French%20version%20%3B-%29%0D%0A%0D%0AAlors%2C%20on%20va%20encore%20m%27accuser%20de%20publier%20que%20des%20billets%20geeks%2C%20et%20court%20pour%20celui-ci%20en%20plus%2C%20mais%20c%27est%20tellement%20gal%C3%A8re%20%C3%A0%20chercher%20sur%20le&amp;submitCategory=science&amp;submitAssetType=text" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/yahoobuzz.png" class="sociable-img sociable-hovers" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://trollfactory.fr/utiliser-buildconf-avec-la-version-autoconf-de-son-choix-use-buildconf-with-a-specific-autoconf-version-314/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Les tâches planifiées sous Linux (cron, crontab) : seconde approche</title>
		<link>http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139</link>
		<comments>http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139#comments</comments>
		<pubDate>Sat, 13 Feb 2010 07:00:11 +0000</pubDate>
		<dc:creator><![CDATA[Troll]]></dc:creator>
				<category><![CDATA[Administration serveur]]></category>
		<category><![CDATA[Scripts, astuces, dév. web]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[automatisation]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[tâches planifiées]]></category>

		<guid isPermaLink="false">http://trollfactory.fr/?p=139</guid>
		<description><![CDATA[Bonsoir la compagnie, Après avoir fait joujou une première fois avec les tâches planifiées sous cron gnu/linux, je vous avais promis de vous en dire plus sur les procédés et les possibilités du système de planification des tâches de GNU/Linux : cron. Résumé de ce que vous savez déjà faire si vous avez lu la [...]]]></description>
				<content:encoded><![CDATA[<p>Bonsoir la compagnie,</p>
<p>Après avoir fait joujou une première fois avec <strong><a title="Lire l'article sur une première approche des tâches planifiées sous Linux" href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75" target="_blank">les tâches planifiées sous cron gnu/linux</a></strong>, je vous avais promis de vous en dire plus sur les procédés et les possibilités du système de <strong>planification des tâches de GNU/Linux : cron</strong>.</p>
<p>Résumé de ce que vous savez déjà faire si vous avez lu <a href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75" target="_blank">la première partie sur les tâches planifiées cron</a> :</p>
<ul>
<li>Créer une <strong>tâche planifiée</strong> simple qui lance un fichier <strong>exécutable</strong> avec l&rsquo;utilisateur courant (celui qui a créé le cron) à l&rsquo;aide<strong> la commande crontab</strong></li>
<li>Faire des tâches planifiées à exécution unique (planification non régulière/récurrente)</li>
<li>(Utiliser un autre éditeur pour la commande crontab -e)</li>
</ul>
<p>Ce que je vais vous apprendre en plus dans cet article :</p>
<ul>
<li>Gérer des dates complexes : Répétitions, récurrence des <strong>tâches planifiées</strong> (<strong>jokers, répétitions, sélections multiples</strong>)</li>
<li>Définition d&rsquo;un <strong>fichier personnalisé</strong> de tâches planifiées</li>
<li>Définir une tâche exécutée par un <strong>utilisateur précis.</strong></li>
<li>Éxécuter une tâche planifiée <strong>dans un répertoire particulier</strong>.</li>
<li>Éxécuter une <strong>tâche planifiée graphique.</strong></li>
<li><strong>Gérer les sorties</strong> des commandes exécutées par CRON : logs, mails, etc.</li>
</ul>
<p>Je vous donnerai également quelques filons pour l&rsquo;utilisation de <strong>PHP avec CRON</strong>.<br />
<br /><br /></p>
<h2>Retour sur la planification des tâches : la syntaxe des dates avancées avec CRON.</h2>
<p>Je ne refais pas les explications sur les dates simples dans CRON, c&rsquo;est le sujet de la première approche (dont vous avez les liens au début de cet article). Nous allons voir comment <strong>créer une tâche récurrente</strong>, à l&rsquo;aide des <strong>jokers</strong>, <strong>répétitions</strong> et<strong> sélections multiples</strong>.<br />
<br /><br /></p>
<h3>Le joker : *</h3>
<p>Comme dans beaucoup d&rsquo;applications informatique, le joker chez Cron est l&rsquo;étoile &laquo;&nbsp;*&nbsp;&raquo;. Ainsi, si vous remplacez un quelconque paramètre d&rsquo;une date par une étoile, cela signifie pour cron &laquo;&nbsp;quelque-soit la valeur de ce paramètre&nbsp;&raquo;.</p>
<p>Exemple : Quelque-soit le jour, je veux que à 7h05 tu dises bonjour, durant tout le mois de février :</p>
<p><code>05 07 * 02 * echo 'Hello World !'</code></p>
<p>Ici <strong>nous avons remplacé le numéro du jour dans le mois, ainsi que le jour de la semaine</strong> (qui est également susceptible de varier !) <strong>par le joker &laquo;&nbsp;*&nbsp;&raquo;</strong>, ainsi, quelque-soit les valeurs de ces paramètres, si les autres paramètres (heure, minute, mois) sont vérifiés, CRON dira bonjour au monde.<br />
<br /><br /></p>
<h3>La répétition : /</h3>
<p>Le joker permet de spécifier, au maximum, une répétition toutes les <strong>unités de temps</strong> d&rsquo;un paramètre précis. En effet, si je mets un joker pour l&rsquo;heure, alors cela sera exécuté toutes les <strong>une</strong> heure, puisque cela sera &laquo;&nbsp;quelque-soit l&rsquo;heure&nbsp;&raquo;. Ainsi, avec les jokers, vous pouvez répéter au mieux : tous les jours, toutes les heures, toutes les minutes, tous les lundis, tous les mois&#8230; Bref, pas terrible comme flexibilité tout de même. C&rsquo;est à cela que sert la répétition, elle vous permet de dire tous les combien de variation d&rsquo;un paramètre vous voulez que cela se répète. Une variation d&rsquo;un paramètre, c&rsquo;est +1 minutes, +1 heure, +1 jour, etc. &#8230;</p>
<p>L&rsquo;opérateur de répétition s&rsquo;utilise comme suit : valeur_param<span style="color: #ff0000;"><strong>/</strong></span>intervalle_de_repetition</p>
<p>Ainsi, si je veux que toutes les 15 minutes, une action se répète, quelque-soit la date :</p>
<p><code>*/15 * * * * /usr/bin/monaction</code></p>
<p>On utilise ici également le joker, puisque l&rsquo;action se répète quelque-soit la minute, l&rsquo;heure, ou la date&#8230;</p>
<p><br /><br /><br />
<h3>Les intervalles et les sélections multiples</h3>
<p>Vous pouvez également définir <strong>plusieurs valeurs d&rsquo;un paramètre</strong> pour lesquelles la tâche sera exécutée. On procède soit en donnant <strong>un intervalle de valeurs</strong>, soit une <strong>liste de valeurs</strong>.</p>
<p><strong>Opérateur d&rsquo;intervalle : -</strong></p>
<p>Utilisation : borne1-borne2 ou borne1 et borne2 sont les bornes de l&rsquo;intervalle ( [borne1 ; borne2] ) et incluses.</p>
<p>Exemple : La précédente action se répète toutes les 15 minutes, du 1er au 10 du mois</p>
<p><code>*/15 * 1-10 * * /usr/bin/monaction</code></p>
<p><strong>Opérateur de valeurs multiples : ,</strong></p>
<p>Utilisation : valeur1, valeur2, valeur3&#8230;</p>
<p>Exemple : La précédente action se répète toutes les 15 minutes mais seulement entre 02h et 03h puis entre 05h et 06h</p>
<p><code>*/15 2,5 * * * /usr/bin/monaction</code></p>
<p><br /><br /></p>
<h2>Définir une fichier cron personnalisé : Cron en mode admin</h2>
<p>Jusqu&rsquo;à présent, vous avez utilisé la commande <em><strong>crontab</strong></em> afin de modifier votre fichier cron et d&rsquo;ajouter ou de supprimer des tâches.</p>
<p>En réalité vous n&rsquo;avez utilisé que le côté &laquo;&nbsp;<em>utilisateur</em>&nbsp;&raquo; de cron. La suite n&rsquo;est ouverte qu&rsquo;à un accès root, autrement dit l&rsquo;administateur de la machine, car elle permet notamment de décider de sous quel utilisateur vont être exécutées les tâches, ce que nous verrons en même temps.</p>
<p>Si ce mode d&rsquo;utilisation de cron n&rsquo;est réservé qu&rsquo;à l&rsquo;<strong>administateur</strong>, c&rsquo;est pour plusieurs raisons :</p>
<ol>
<li>Il va permettre, comme je l&rsquo;ai dit, de choisir l&rsquo;utilisateur qui exécute la commande</li>
<li>Le répertoire dans lequel nous allons créer le fichier appartient à root</li>
<li>Seul root peut demander à cron de recharger les fichiers de configuration, or nous en aurons besoin car comme nous allons éditer de simples fichiers, la commande <em>crontab</em> ne sera pas là pour, à la fin de l&rsquo;édition du fichier, dire à cron <em>&laquo;&nbsp;Hey hey, ouhou, on a modifié le fichier là, viens y jeter un coup d&rsquo;oeil&nbsp;&raquo;</em> et par défaut <strong>cron ne verra donc pas vos modifs sans reload</strong>, et donc sans droits d&rsquo;admin.</li>
</ol>
<p><br /><br /><br />
<h3>Créer votre fichier de tâches planifiées : le répertoire /etc/cron.d/</h3>
<p>Vous êtes donc maintenant loggé en root, ou, si vous n&rsquo;avez pas le <em><strong>su</strong></em> sur votre machine, vous exécuterez le reste des commandes avec un &laquo;&nbsp;sudo&nbsp;&raquo; devant.</p>
<p>Les fichiers de tâches planifiées sont placés dans le répertoire <strong>/etc/cron.d/</strong>, qui appartient à root.</p>
<p>Créons-y un fichier :</p>
<p><code>vim /etc/cron.d/monfichiercron</code></p>
<p>Voilà, tout le travail est fait&#8230; ou presque. Dans ce fichier, vous pouvez placer des tâches planifiées <strong>exactement de la même façon qu&rsquo;avec la commande crontab</strong> à la différence prêt&#8230; qu&rsquo;il faut spécifier l&rsquo;utilisateur d&rsquo;exécution !</p>
<p>Cela donne :</p>
<p><code>mm HH JJ MM joursemaine utilisateur /chemin/commande</code></p>
<p>Exemple, je suis l&rsquo;utilisateur Troll, je veux que l&rsquo;utilisateur Toto fasse le ménage dans son dossier personnel chaque semaine (vision geek du <em>Range ta chambre !</em> maternel/paternel), on dira qu&rsquo;on est un peu radical, si le dimanche il n&rsquo;a pas vidé son dossier perso (il est censé le faire le samedi) tant pis : tout poubelle !<br />
<em>Note : A NE PAS TESTER CHEZ VOUS ! Vous risqueriez d&rsquo;avoir de sérieux ennui ^^</em></p>
<p><code>01 00 * * sun toto rm -fR /home/toto/*</code></p>
<p>Bien sûr l&rsquo;utilisateur peut aussi être <em>root</em>&#8230; But, be careful !</p>
<p>Ensuite, une fois que vous avez sauvegardé votre fichier, il faut dire à cron de le relire pour l&rsquo;intégrer :</p>
<p>(encore une commande à faire en root, si vous avez bien lu le début de ce paragraphe !)<br />
<code>/etc/init.d/crond reload</code></p>
<p>Cron a bien rechargé s&rsquo;il dit ça normalement :</p>
<p><code>Reloading crond:                                           [  OK  ]</code></p>
<p><br /><br /><br />
<h3>Les autres fichiers préconfigurés de cron :</h3>
<p>Cron a également <strong>des dossiers préconfigurés</strong>, dans lesquels il vous suffit de mettre <strong>un script</strong> (ou un lien symbolique, solution la plus souvent utilisée) <strong>exécutable</strong>.</p>
<p>Ces dossiers sont les suivants :</p>
<ul>
<li><strong>/</strong><strong>etc/crond.daily</strong> : exécution quotidienne (chaque jour à 4h02)</li>
<li><strong>/etc/crond.hourly</strong> : exécution chaque heure (chaque heure + 1 minute)</li>
<li><strong>/etc/crond.weekly</strong> : exécution hebdomadaire (le dimanche à 4h22)</li>
<li><strong>/etc/crond.monthly</strong> : exécution mensuelle (le 1er du mois à 4h42)</li>
</ul>
<p>Comme je suis gentil, je vous donne même les commandes :</p>
<p><strong>Création d&rsquo;un script exécutable dans un dossier :</strong><br />
(en root encore et toujours)<br />
<code>vim /mon/chemin/de/fichier &amp;amp;&amp;amp; chmod +x /mon/chemin/de/fichier</code></p>
<p><strong>Création d&rsquo;un lien symbolique</strong> dans /etc/crond.daily (par exemple) pointant vers /mon/chemin/de/fichier :</p>
<p><code>ln -s /mon/chemin/de/fichier /etc/crond.daily/monscript &amp;amp;&amp;amp; chmod +x /etc/crond.daily/monscript</code></p>
<p>L&rsquo;avantage du lien symbolique c&rsquo;est que vous pouvez mettre votre script dans un dossier où vous le retrouvez et vous pouvez placer un lien dans plusieurs dossiers /etc/crond.XXX/ <strong>sans avoir à modifier tous les fichiers quand vous modifiez le script</strong> (principe du lien symbolique).</p>
<p><br /><br /><br />
<h2>Éxécuter des tâches planifiées dans un répertoire particlier</h2>
<p>Il peut s&rsquo;avérer que vous ayiez besoin d&rsquo;exécuter une commande qui va chercher des fichiers ou autres dans son répertoire courant et qui sera donc perdue si vous la lancez avec cron de la manière <em>/chemin/commande</em></p>
<p>Pour cela, utilisez tout simplement la commande <strong>cd</strong> :</p>
<p><code>03 01 * * * tutu cd /home/tutu/scripts/ &amp;amp;&amp;amp; ./macommande</code></p>
<p><br /><br /><br />
<h2>Éxécution d&rsquo;une tâche planifiée graphique</h2>
<p>La console, y&rsquo;a rien de mieux, ça plante pas, ça vous cache rien&#8230; Mais c&rsquo;est pas très esthétique. Puis si vous voulez par exemple lancer Amarok pour vous reveiller en musique, Amarok va avoir besoin d&rsquo;une interface graphique (sauf si vous connaissez une interface ligne de commande pour amarok, auquel cas je veux bien que vous partagiez l&rsquo;info avec moi !).</p>
<p>Pour cela, procédez comme suit : placez <strong>DISPLAY=:0</strong> après le jour de la semaine, ou après le nom d&rsquo;utilisateur quand celui-ci est spécifié.</p>
<p>Si vous utilisez une commande composée, du type :</p>
<p><code>/chemin/premierecommande &amp;amp;&amp;amp; /chemin/deuxiemecommande</code></p>
<p>(ce qui est notamment le cas lorsque vous exécutez dans un répertoire particulier) alors vous devez mettre le <strong>DISPLAY=:0</strong> juste avant la commande qui aura besoin de l&rsquo;affichage.</p>
<h2>Gérer les sorties des commandes exécutées par CRON : logs, mails, etc.</h2>
<p>Par défaut, notamment lors de la définition d&rsquo;une tâche planifiée avec <strong>crontab -e</strong>, si votre commande génère une <em>sortie</em> vous devez &#8211; en théorie (désactivé sur certaines distrib&rsquo;) &#8211; recevoir un &laquo;&nbsp;mail&nbsp;&raquo; ( dans /var/spool/votrelogin ) avec la sortie générée.</p>
<p>Ce n&rsquo;est pas vraiment un mode très pratique pour logger et retrouver les sorties de vos tâches planifiées préférées.</p>
<p>Je vais donc vous montrer comment enregistrer dans un fichier log la sortie de vos tâches planifiées.</p>
<p>En fait, cela revient au même que pour enregistrer dans un fichier log une commande console standard. Cela revient à faire comme ceci :</p>
<p><strong>Enregistrer tout</strong> dans monfichier.log (sortie normale + erreurs)<br />
<code>/chemin/macomandequigenereunesortie &amp;gt; monfichier.log 2&amp;gt;&amp;amp;1</code></p>
<p><strong>Enregistrer seulement les erreurs</strong> dans monfichier.log :</p>
<p><code>/chemin/macomandequigenereunesortie &amp;gt; /dev/null 2&amp;gt; monfichier.log</code></p>
<p><strong>Ne rien enregistrer</strong> :</p>
<p><code>/chemin/macomandequigenereunesortie &amp;gt; /dev/null 2&amp;gt;&amp;amp;1</code></p>
<p><strong>Attention, tel que c&rsquo;est présenté ici, chaque nouvelle exécution remplace le contenu de monfichier.log</strong></p>
<p>Si vous voulez logger sur plus d&rsquo;un seul lancement, vous devez créer le fichier monfichier.log avant (ce qui n&rsquo;était pas nécessaire précédemment) et remplacer systématiquement dans les précédentes commandes, le &laquo;&nbsp;&gt;&nbsp;&raquo; par &laquo;&nbsp;&gt;&gt;&nbsp;&raquo; (enfin presque, pas tous, regardez ci-dessous).</p>
<p>Ce qui donne :</p>
<p><code>/chemin/macomandequigenereunesortie &amp;gt;&amp;gt; monfichier.log 2&amp;gt;&amp;amp;1</code><br />
<code>/chemin/macomandequigenereunesortie &amp;gt; /dev/null 2&amp;gt;&amp;gt; monfichier.log</code><br />
<code>/chemin/macomandequigenereunesortie &amp;gt; /dev/null 2&amp;gt;&amp;amp;1</code><br />
<br /><br /></p>
<h2>Annexes : Utilisation de PHP avec CRON</h2>
<p>Pour lancer une <strong>tâche écrite en PHP avec cron</strong>, saisissez une tâche de la manière suivante :</p>
<p><code>mm HH JJ MM joursemaine [user] /usr/bin/php -f /chemin/de/fichier.php</code></p>
<p>Ou, ce qui est conseillé avec PHP, avec exécution dans un repértoire particulier :</p>
<p><code>mm HH JJ MM joursemaine [user] cd /chemin/de/ &amp;amp;&amp;amp; /usr/bin/php -f ./fichier.php</code></p>
<p>Bien évidemment, vous pouvez logger dans un .log avec les .php comme avec n&rsquo;importe quelle autre commande.</p>
<p>Voilà, c&rsquo;est terminé : des remarques, des erreurs à signaler, des questions -&gt; Les commentaires sont là pour ça ! J&rsquo;espère avoir été clair et que cet article sera utile au plus grand nombre <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley" /></p>
Share and Enjoy:<a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/printfriendly.png" class="sociable-img sociable-hovers" title="Print" alt="Print" /></a><a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/pdf.png" class="sociable-img sociable-hovers" title="PDF" alt="PDF" /></a><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche%20-%20http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;t=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a><a rel="nofollow" target="_blank"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche&amp;source=The+Troll%26%23039%3Bs+factory+Geekeries+%26amp%3B+pens%C3%A9es&amp;summary=Bonsoir%20la%20compagnie%2C%0D%0A%0D%0AApr%C3%A8s%20avoir%20fait%20joujou%20une%20premi%C3%A8re%20fois%20avec%20les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20cron%20gnu%2Flinux%2C%20je%20vous%20avais%20promis%20de%20vous%20en%20dire%20plus%20sur%20les%20proc%C3%A9d%C3%A9s%20et%20les%20possibilit%C3%A9s%20du%20syst%C3%A8me%20de%20planification%20des%20t%C3%A2ches%20de%20GNU%2FL" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/linkedin.png" class="sociable-img sociable-hovers" title="LinkedIn" alt="LinkedIn" /></a><a rel="nofollow" target="_blank"  href="http://trollfactory.fr/feed" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/rss.png" class="sociable-img sociable-hovers" title="RSS" alt="RSS" /></a><a rel="nofollow" target="_blank"  href="http://www.wikio.fr/vote?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/wikio.png" class="sociable-img sociable-hovers" title="Wikio FR" alt="Wikio FR" /></a><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche&amp;bodytext=Bonsoir%20la%20compagnie%2C%0D%0A%0D%0AApr%C3%A8s%20avoir%20fait%20joujou%20une%20premi%C3%A8re%20fois%20avec%20les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20cron%20gnu%2Flinux%2C%20je%20vous%20avais%20promis%20de%20vous%20en%20dire%20plus%20sur%20les%20proc%C3%A9d%C3%A9s%20et%20les%20possibilit%C3%A9s%20du%20syst%C3%A8me%20de%20planification%20des%20t%C3%A2ches%20de%20GNU%2FL" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche&amp;notes=Bonsoir%20la%20compagnie%2C%0D%0A%0D%0AApr%C3%A8s%20avoir%20fait%20joujou%20une%20premi%C3%A8re%20fois%20avec%20les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20cron%20gnu%2Flinux%2C%20je%20vous%20avais%20promis%20de%20vous%20en%20dire%20plus%20sur%20les%20proc%C3%A9d%C3%A9s%20et%20les%20possibilit%C3%A9s%20du%20syst%C3%A8me%20de%20planification%20des%20t%C3%A2ches%20de%20GNU%2FL" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche&amp;annotation=Bonsoir%20la%20compagnie%2C%0D%0A%0D%0AApr%C3%A8s%20avoir%20fait%20joujou%20une%20premi%C3%A8re%20fois%20avec%20les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20cron%20gnu%2Flinux%2C%20je%20vous%20avais%20promis%20de%20vous%20en%20dire%20plus%20sur%20les%20proc%C3%A9d%C3%A9s%20et%20les%20possibilit%C3%A9s%20du%20syst%C3%A8me%20de%20planification%20des%20t%C3%A2ches%20de%20GNU%2FL" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a><a rel="nofollow" target="_blank"  href="http://technorati.com/faves?add=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/technorati.png" class="sociable-img sociable-hovers" title="Technorati" alt="Technorati" /></a><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a><a rel="nofollow" target="_blank"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/live.png" class="sociable-img sociable-hovers" title="Live" alt="Live" /></a><a rel="nofollow" target="_blank"  href="http://www.netvibes.com/share?title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/netvibes.png" class="sociable-img sociable-hovers" title="Netvibes" alt="Netvibes" /></a><a rel="nofollow" target="_blank"  href="http://www.scoopeo.com/scoop/new?newurl=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/scoopeo.png" class="sociable-img sociable-hovers" title="Scoopeo" alt="Scoopeo" /></a><a rel="nofollow" target="_blank"  href="http://www.viadeo.com/shareit/share/?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche&urllanguage=fr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/viadeo.png" class="sociable-img sociable-hovers" title="viadeo FR" alt="viadeo FR" /></a><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a><a rel="nofollow" target="_blank"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;t=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/myspace.png" class="sociable-img sociable-hovers" title="MySpace" alt="MySpace" /></a><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a><a rel="nofollow" target="_blank"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139&amp;submitHeadline=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20seconde%20approche&amp;submitSummary=Bonsoir%20la%20compagnie%2C%0D%0A%0D%0AApr%C3%A8s%20avoir%20fait%20joujou%20une%20premi%C3%A8re%20fois%20avec%20les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20cron%20gnu%2Flinux%2C%20je%20vous%20avais%20promis%20de%20vous%20en%20dire%20plus%20sur%20les%20proc%C3%A9d%C3%A9s%20et%20les%20possibilit%C3%A9s%20du%20syst%C3%A8me%20de%20planification%20des%20t%C3%A2ches%20de%20GNU%2FL&amp;submitCategory=science&amp;submitAssetType=text" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/yahoobuzz.png" class="sociable-img sociable-hovers" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Les tâches planifiées sous Linux (cron, crontab) : première approche</title>
		<link>http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75</link>
		<comments>http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75#comments</comments>
		<pubDate>Thu, 24 Dec 2009 06:40:59 +0000</pubDate>
		<dc:creator><![CDATA[Troll]]></dc:creator>
				<category><![CDATA[Administration serveur]]></category>
		<category><![CDATA[Geekeries]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[automatisation]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[tâches planifiées]]></category>

		<guid isPermaLink="false">http://trollfactory.fr/?p=75</guid>
		<description><![CDATA[Mise à jour : La deuxième partie de ce guide sur les tâches planifiées, intitulée Tâches planifiées sous Linux (cron, crontab) : Seconde approche est dorénavant disponible ici : Tâches planifiées sous Linux (cron, crontab) : Seconde approche. Article original : Salut la compagnie, Aujourd&#8217;hui, et malgré les touffes de poils que le Troll s&#8217;est [...]]]></description>
				<content:encoded><![CDATA[<p><em><strong>Mise à jour :</strong> La deuxième partie de ce guide sur les tâches planifiées, intitulée <a href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139#post" target="_blank">Tâches planifiées sous Linux (cron, crontab) : Seconde approche</a> est dorénavant disponible ici : <em><a href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139#post" target="_blank">Tâches planifiées sous Linux (cron, crontab) : Seconde approche</a></em>.</em></p>
<p><a href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139#post"> </a><em>Article original : </em><br />
Salut la compagnie,</p>
<p>Aujourd&rsquo;hui, et malgré les touffes de poils que le Troll s&rsquo;est arrachées toute la journée en se battant avec le fameux vilain <strong>cron </strong>et son accolite <strong>crontab</strong>, je vais vous parler de quelque-chose de bien utile, voire tout simplement indispensable, pour n&rsquo;importe quel administrateur d&rsquo;un serveur web, ou même d&rsquo;un site internet (mais il est assez rare que vous ayiez la possibilité de mettre des cron sans avoir un dédié (ou au moins un VPS) ) : <strong>les tâches planifiées</strong>.</p>
<p>Les tâches planifiées c&rsquo;est quoi ? Que vous soyiez GNU/Linuxien ou Windowsien (bouuuuuuh, bon ok, j&rsquo;arrête) vous ne le savez peut-être pas mais votre système est capable de faire des choses sans que vous lui demandiez, sans que vous n&rsquo;ayiez quoi que ce soit à faire, de manière automatique.</p>
<p><a href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139#post"> </a>Cela s&rsquo;appelle <strong>les tâches planifiées </strong>, concrètement cela signifie qu&rsquo;une <em>tâche</em>, va être <em>planifiée</em> (jusque-là, vous suivez ?), et qu&rsquo;une fois que c&rsquo;est fait, elle s&rsquo;exécutera de manière automatique soit une fois, soit plusieurs fois, suivant la manière dont on la planifie.</p>
<p><a href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139#post"> </a></p>
<h2>Planifier ? Késako ?</h2>
<p>Tout d&rsquo;abord, considérons que vous n&rsquo;avez jamais eu à faire à ce genre de choses, et partons du début : Planifier ? Késako ? (si vous n&rsquo;avez jamais vu ce mot&#8230; euh&#8230; je plains votre patron)  Planifier, cela signifie que l&rsquo;on va fixer une date, une heure, un moment précis, où l&rsquo;on souhaite exécuter une tâche.</p>
<p><a href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139#post"> </a><strong>Si c&rsquo;est une tâche </strong><em><strong>unique</strong></em>, que l&rsquo;on a besoin d&rsquo;effectué qu&rsquo;une seule fois, parce-qu&rsquo;on est pas là à ce moment-là par exemple (comment que vous programmiez votre magnétoscope pour enregistrer le film débile du samedi soir (pour vos enfants bien sûr&#8230; vous, vous ne regardez rien de stupide, Arte©® Powered, n&rsquo;est-ce pas ?) ).</p>
<p><a href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139#post"> </a></p>
<p><strong>Si c&rsquo;est une tâche <em>récurrente</em></strong> c&rsquo;est-à-dire qu&rsquo;il faudra l&rsquo;exécuter régulièrement (comme faire le ménage !), dans ce cas il sera possible de la programmer de manière à ce qu&rsquo;elle s&rsquo;effectue de manière <em>récurrente</em>, toujours au même moment, à la même heure, etc. &#8230; (et de la même façon, on a à faire à des ordinateurs standards, pas d&rsquo;<a href="http://fr.wikipedia.org/wiki/IA" target="_blank">IA</a> encore).</p>
<h2>Cron &amp; Crontab : Je planifie, tu planifies&#8230;</h2>
<p><strong>Sous Linux, le principal outil de planification se nomme cron</strong>, et très vite nous (et vous aussi) appelerons tout simplement une <em>tâche planifiée</em> un <em>cron</em>.</p>
<p>Tout d&rsquo;abord, avez-vous cron d&rsquo;installé ?  Cron est installé sur un bon 80% des distributions, donc il y a des chances. Pour le savoir tapez :</p>
<p><code> ls -l /etc/init.d/ | grep cron </code></p>
<p><em> Pour ceux sous archlinux, /etc/init.d c&rsquo;est /etc/rc.d/ de mémoire. </em></p>
<p>Si vous êtes sous un système basé sur debian, avec aptitude :</p>
<p><code> sudo aptitude show cron </code></p>
<p>Sous Fedora :</p>
<p><code>sudo yum install cron</code></p>
<p>(si cron est déjà installé ça vous le dira, sinon, ça l&rsquo;installera !!)</p>
<p>Comme on est pas encore sûr que cron soit déjà lancé, faisons un petit restart :</p>
<p><code> sudo /etc/init.d/cron restart </code></p>
<p><em> (il est possible que le fichier soit nommé &laquo;&nbsp;crond&nbsp;&raquo; chez vous)</em></p>
<p><strong> Bon, on est prêt, cron est lancé. </strong> Maintenant que faire ?</p>
<p>Dans cette première partie, comme c&rsquo;est écrit dans le titre, je ne vais pas vous donner toutes les &laquo;&nbsp;clés&nbsp;&raquo; de cron, nous allons simplement voir ensemble comment utiliser la commande de base, qui permet en fait à elle seule de tout faire, juste d&rsquo;un manière <strong>parfois</strong> moins &laquo;&nbsp;propre&nbsp;&raquo; qu&rsquo;en passant par certains fichiers un peu plus &laquo;&nbsp;complexes&nbsp;&raquo; (pas vraiment complexes en fait, mais ça vous fais manipuler des fichiers etc. etc. &#8230; puis faut être root, alors ne commençons par les bêtises tout de suite).</p>
<p><strong> La commande dont vous allez dorénavant tomber amoureux est la suivante :</strong></p>
<p><code>crontab -e</code></p>
<p>La commande <strong>crontab</strong> permet, de manière générale, de mettre à jour et modifier les tâches <em>cron</em> d&rsquo;un utilisateur donné.</p>
<p>Donnons tout de même quelques <strong>précisions </strong>dessus :</p>
<p>- Si vous voulez <strong>remplacer la totalité de votre crontab</strong> (c&rsquo;est-à-dire toutes les tâches qu&rsquo;il contient, comme nous allons le voir après) par le contenu d&rsquo;un fichier, utilisez la commande comme ceci :</p>
<p><code>crontab /chemin/vers/mon/fichier</code></p>
<p>- Ensuite, par défaut la commande <strong>crontab </strong>va éditer le fichier crontab de <em>l&rsquo;utilisateur courant</em> (oui, c&rsquo;est vous qui courez),  si vous voulez modifier le crontab d&rsquo;un autre utilisateur (notamment pratique quand on exécute la commande en root !!)  il faut lui préciser <strong>le paramètre &laquo;&nbsp;-u&nbsp;&raquo; </strong>comme ceci :</p>
<p><code>crontab -u user</code></p>
<p>- Et puis allez, un petit dernier pour la route, pour <strong>voir le contenu de votre crontab sans l&rsquo;éditer</strong> (le &laquo;&nbsp;-e&nbsp;&raquo; que nous allons voir) :</p>
<p><code>crontab -l</code></p>
<p>Les paramètres peuvent bien entendus se <strong>combiner </strong>:</p>
<p><code>crontab -l -u troll</code></p>
<p>(affiche le contenu du crontab de l&rsquo;utilisateur <em>troll</em> (c&rsquo;est moi) )</p>
<p>Voilà, maintenant passons aux choses sérieuses, donc, <strong>l&rsquo;édition</strong> :</p>
<p><code>crontab -e</code></p>
<p>Vous voilà maintenant dans un fichier texte, ne vous souciez pas de savoir où il est ni ce que c&rsquo;est, car c&rsquo;est en réalité un fichier temporaire.</p>
<p>Vous êtes certainement (95% de chance) sous l&rsquo;éditeur en console &laquo;&nbsp;<strong>Nano</strong>&laquo;&nbsp;,  si vous savez utiliser vim (ou vi pour les courageux) et que vous êtes (comme moi) allergiques à nano, je vous file quand même la magouille :</p>
<p><code>EDITOR="vim" crontab -e</code></p>
<p>Je me contenterai pour ma part de décrire les actions à faire sous nano, supposant que si vous utilisez vim, c&rsquo;est que vous savez vous en servir (vraiment trèèèès compliqué&#8230; (ironie) ).</p>
<p><strong>Dans ce fichier, vous mettrez une tâche planifiée par ligne</strong>, et UNE SEULE !</p>
<p>Suivant la longueur de votre &laquo;&nbsp;ligne&nbsp;&raquo; cell-ci peut s&rsquo;afficher sur plusieurs &laquo;&nbsp;lignes&nbsp;&raquo; en console, mais tant que vous n&rsquo;avez pas mis de retour ligne (Entrée) cela reste la même ligne. L<strong>orsque qu&rsquo;une ligne est trop longue pour être affichée en plein, nano la coupe en général et met un &laquo;&nbsp;$&nbsp;&raquo; à la fin</strong> pour vous dire que tout n&rsquo;est pas affiché.</p>
<p>Maintenant voyons <strong>la syntaxe</strong> des &laquo;&nbsp;<em>cron&nbsp;&raquo;</em> :  ceux-ci sont constitués de <strong>deux parties distinctes : le moment d&rsquo;exécution, et la commande à exécuter (ou tâche)</strong>. Les deux parties sont séparées par un espace (comme souvent sous GNU/Linux).</p>
<p>Ce qui donnera donc à la fin :</p>
<p><code>partie_date partie_tache</code></p>
<p>Voyons ce qu&rsquo;on met à la place de <strong>partie_date</strong> (dans l&rsquo;ordre, avec un espace entre chaque donnée à chaque fois) :</p>
<ol>
<li><strong>minute</strong> : la minute (00 à 60) de l&rsquo;heure à laquelle exécuter la tâche</li>
<li><strong>heure</strong> : l&rsquo;heure (0 à 23), de l&rsquo;heure de planification de la tâche</li>
<li><strong>jour du mois</strong> : de 0 à 31 (ou autre, suivant les mois), le jour, dans la date de planification de la tâche</li>
<li><strong>mois</strong> : nombre correspondant au mois (00 à 12) de la date à laquelle vous voulez planifier.</li>
<li><strong>jour de la semaine</strong> : Le nom abrégé (mon, tue, wed, thu, fri, sat, sun) ou le numéro (1 à 7) du jour de la date de planification au sein de sa semaine : Lundi = 1, mardi = 2, etc&#8230;</li>
</ol>
<p>Voilà, petit exemple, admettons que je veuille exécuter une date le 1er de l&rsquo;an 2010 à une heure de l&rsquo;après-midi, la partie &laquo;&nbsp;partie_date&nbsp;&raquo; sera la suivante :</p>
<p><code>00 13 01 01 fri</code></p>
<p><strong>Vous devez avoir au total 5 données</strong> : minute heure jourdumois mois jourdelasemaine  Voilà, pour la partie &laquo;&nbsp;date&nbsp;&raquo;, nous nous contenterons des dates fixes dans cette première approches.</p>
<p><strong>Venons-en à la tâche à éxécuter</strong> : Ici, rien de plus compliqué que de taper dans une console. Cron lira la tâche à exécuter avec <em>bash</em>, ce qui signifie qu&rsquo;il le lira de la même manière (enfin presque) qu&rsquo;il lit les choses quand vous, vous tapez dans la console.</p>
<p>Un petit détail cependant : <strong>mettez toujours toutes les commandes en chemin ABSOLU ! ! !</strong> Même les commandes qui paraissent évidentes et qui sont dans /usr/sbin, rajoutez bien le /chemin/vers/mon/fichier . <img src="//trollfactory.fr/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /></p>
<p>Ce qui vous donnera, une fois les deux <em>parties</em> remplies :</p>
<p><code>minute jour jourdumois mois jourdelasemaine /chemin/vers/ma/commande</code></p>
<p><strong>Maintenant que vous avez écrit votre tâche planifiée, il n&rsquo;y a plus qu&rsquo;à enregistrer et fermer !</strong></p>
<p>Pour ça, faites <strong>CTRL + X</strong>, puis appuyez sur &laquo;&nbsp;<strong>O</strong>&nbsp;&raquo; pour répondre oui à la question, et enfin appuyez sur <strong>ENTREE </strong>pour confirmer votre &laquo;&nbsp;oui&nbsp;&raquo;.</p>
<p><em>S</em><em>ous vi/vim : sortez du mode édition (<strong>CTRL + C</strong>) puis tapez le traditionnel <strong>:wq</strong></em></p>
<p>Voilà, je vous écris très prochainement la partie suivante : seconde approche.</p>
<p>On y abordera : les jokers, les répétitions, les sélections multiples dans les dates.</p>
<p>Dans les tâches : comment gérer leur sortie et enregistrer leurs résultats et leurs erreurs, ou au contraire ne pas le faire, et ne pas recevoir de &laquo;&nbsp;mail&nbsp;&raquo; du logger. On parlera peut-être également de la modification manuelle des fichiers cron auxquels la commande &laquo;&nbsp;crontab&nbsp;&raquo; ne touche pas.  Petite note : si vous avez un quelconque problème avec ces explications, laissez un comm&rsquo; pour demander de l&rsquo;aide <img src="//trollfactory.fr/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley" /></p>
<p><strong>Mise à jour : La deuxième partie de ce guide sur les tâches planifiées, intitulée <a href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139#post" target="_blank">Tâches planifiées sous Linux (cron, crontab) : Seconde approche</a> est dorénavant disponible ici : <a href="http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-seconde-approche-139#post">tâches planifiées sous Linux (cron, crontab) : Gestion et commandes avancées</a>.</strong></p>
Share and Enjoy:<a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/printfriendly.png" class="sociable-img sociable-hovers" title="Print" alt="Print" /></a><a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/pdf.png" class="sociable-img sociable-hovers" title="PDF" alt="PDF" /></a><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche%20-%20http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;t=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a><a rel="nofollow" target="_blank"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche&amp;source=The+Troll%26%23039%3Bs+factory+Geekeries+%26amp%3B+pens%C3%A9es&amp;summary=Mise%20%C3%A0%20jour%20%3A%20La%20deuxi%C3%A8me%20partie%20de%20ce%20guide%20sur%20les%20t%C3%A2ches%20planifi%C3%A9es%2C%20intitul%C3%A9e%20T%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20Seconde%20approche%20est%20dor%C3%A9navant%20disponible%20ici%20%3A%20T%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20Seconde%20approch" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/linkedin.png" class="sociable-img sociable-hovers" title="LinkedIn" alt="LinkedIn" /></a><a rel="nofollow" target="_blank"  href="http://trollfactory.fr/feed" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/rss.png" class="sociable-img sociable-hovers" title="RSS" alt="RSS" /></a><a rel="nofollow" target="_blank"  href="http://www.wikio.fr/vote?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/wikio.png" class="sociable-img sociable-hovers" title="Wikio FR" alt="Wikio FR" /></a><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche&amp;bodytext=Mise%20%C3%A0%20jour%20%3A%20La%20deuxi%C3%A8me%20partie%20de%20ce%20guide%20sur%20les%20t%C3%A2ches%20planifi%C3%A9es%2C%20intitul%C3%A9e%20T%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20Seconde%20approche%20est%20dor%C3%A9navant%20disponible%20ici%20%3A%20T%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20Seconde%20approch" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche&amp;notes=Mise%20%C3%A0%20jour%20%3A%20La%20deuxi%C3%A8me%20partie%20de%20ce%20guide%20sur%20les%20t%C3%A2ches%20planifi%C3%A9es%2C%20intitul%C3%A9e%20T%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20Seconde%20approche%20est%20dor%C3%A9navant%20disponible%20ici%20%3A%20T%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20Seconde%20approch" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche&amp;annotation=Mise%20%C3%A0%20jour%20%3A%20La%20deuxi%C3%A8me%20partie%20de%20ce%20guide%20sur%20les%20t%C3%A2ches%20planifi%C3%A9es%2C%20intitul%C3%A9e%20T%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20Seconde%20approche%20est%20dor%C3%A9navant%20disponible%20ici%20%3A%20T%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20Seconde%20approch" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a><a rel="nofollow" target="_blank"  href="http://technorati.com/faves?add=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/technorati.png" class="sociable-img sociable-hovers" title="Technorati" alt="Technorati" /></a><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a><a rel="nofollow" target="_blank"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/live.png" class="sociable-img sociable-hovers" title="Live" alt="Live" /></a><a rel="nofollow" target="_blank"  href="http://www.netvibes.com/share?title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche&amp;url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/netvibes.png" class="sociable-img sociable-hovers" title="Netvibes" alt="Netvibes" /></a><a rel="nofollow" target="_blank"  href="http://www.scoopeo.com/scoop/new?newurl=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/scoopeo.png" class="sociable-img sociable-hovers" title="Scoopeo" alt="Scoopeo" /></a><a rel="nofollow" target="_blank"  href="http://www.viadeo.com/shareit/share/?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche&urllanguage=fr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/viadeo.png" class="sociable-img sociable-hovers" title="viadeo FR" alt="viadeo FR" /></a><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a><a rel="nofollow" target="_blank"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;t=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/myspace.png" class="sociable-img sociable-hovers" title="MySpace" alt="MySpace" /></a><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;title=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a><a rel="nofollow" target="_blank"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Ftrollfactory.fr%2Fles-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75&amp;submitHeadline=Les%20t%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20premi%C3%A8re%20approche&amp;submitSummary=Mise%20%C3%A0%20jour%20%3A%20La%20deuxi%C3%A8me%20partie%20de%20ce%20guide%20sur%20les%20t%C3%A2ches%20planifi%C3%A9es%2C%20intitul%C3%A9e%20T%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20Seconde%20approche%20est%20dor%C3%A9navant%20disponible%20ici%20%3A%20T%C3%A2ches%20planifi%C3%A9es%20sous%20Linux%20%28cron%2C%20crontab%29%20%3A%20Seconde%20approch&amp;submitCategory=science&amp;submitAssetType=text" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/yahoobuzz.png" class="sociable-img sociable-hovers" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://trollfactory.fr/les-taches-planifiees-sous-linux-cron-crontab-premiere-approche-75/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
