<?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>Antoine Wallon a.k.a Neowdj</title>
	<atom:link href="http://famillewallon.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://famillewallon.com</link>
	<description>Sysadmin linux &#38; PHP Develloper</description>
	<lastBuildDate>Wed, 17 Feb 2010 21:23:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Optimiser la consommation de batterie sur un ordinateur portable sous fedora</title>
		<link>http://famillewallon.com/2010/02/17/optimiser-la-consommation-de-batterie/</link>
		<comments>http://famillewallon.com/2010/02/17/optimiser-la-consommation-de-batterie/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 21:19:29 +0000</pubDate>
		<dc:creator>Neowdj</dc:creator>
				<category><![CDATA[Logiciel]]></category>
		<category><![CDATA[Batterie]]></category>
		<category><![CDATA[Ordinateur portable]]></category>
		<category><![CDATA[powertop]]></category>

		<guid isPermaLink="false">http://famillewallon.com/?p=505</guid>
		<description><![CDATA[Voici un petit utilitaire qui permet de faire une économie quand on utilise la batterie d&#8217;un ordinateur portable
il suffi d&#8217;installer en premier lieux PowerTop
# yum install powertop
ensuite lancer l&#8217;utilitaire
# powertop
ce petit outil vous indiquera les modifications à effectuer sur le système pour optimiser la batterie

]]></description>
			<content:encoded><![CDATA[<p>Voici un petit utilitaire qui permet de faire une économie quand on utilise la batterie d&#8217;un ordinateur portable</p>
<p>il suffi d&#8217;installer en premier lieux PowerTop</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># yum install powertop</span></div></div>
<p>ensuite lancer l&#8217;utilitaire</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># powertop</span></div></div>
<p>ce petit outil vous indiquera les modifications à effectuer sur le système pour optimiser la batterie</p>
<p><a href="http://files.famillewallon.com/2010/02/powertop.png" class="jlightbox505"><img class="aligncenter size-medium wp-image-506" title="Power Top" src="http://files.famillewallon.com/2010/02/powertop-300x248.png" alt="Power Top" width="300" height="248" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://famillewallon.com/2010/02/17/optimiser-la-consommation-de-batterie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Caverne d&#8217;Ali Baba pour Mootools et jQuery</title>
		<link>http://famillewallon.com/2010/02/17/caverne-dali-baba-pour-mootools-et-jquery/</link>
		<comments>http://famillewallon.com/2010/02/17/caverne-dali-baba-pour-mootools-et-jquery/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 19:34:30 +0000</pubDate>
		<dc:creator>Neowdj</dc:creator>
				<category><![CDATA[Ajax & co]]></category>

		<guid isPermaLink="false">http://famillewallon.com/?p=499</guid>
		<description><![CDATA[Je vous fais part d&#8217;un blogue éditer par Davis Walsh, qui recense plein de petits scripts  Mootools &#38; jQuery
http://davidwalsh.name/
]]></description>
			<content:encoded><![CDATA[<p>Je vous fais part d&#8217;un blogue éditer par Davis Walsh, qui recense plein de petits scripts  Mootools &amp; jQuery</p>
<p><a href="http://davidwalsh.name/" target="_blank">http://davidwalsh.name/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://famillewallon.com/2010/02/17/caverne-dali-baba-pour-mootools-et-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nom de domaine .co.cc</title>
		<link>http://famillewallon.com/2010/02/06/nom-de-domaine-co-cc/</link>
		<comments>http://famillewallon.com/2010/02/06/nom-de-domaine-co-cc/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 16:02:32 +0000</pubDate>
		<dc:creator>Neowdj</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://famillewallon.com/?p=481</guid>
		<description><![CDATA[ 
En me baladant sur internet j&#8217;ai trouvé le moyen d&#8217;avoir un nom de domaine gratuit  l&#8217;avantage du .co.cc c&#8217;est de pouvoir l&#8217;utiliser comme avec un vrais nom de domaine (avec un champ MX (email) si vous le souhaitez) c&#8217;est  dire sans redirection. Il est possible de mettre votre propre serveur DNS (ns), d&#8217;utiliser celui [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.co.cc" target="_blank"><img class="alignleft" style="border: 0pt none;" src="http://get-banner.lookup.co.cc/banner_img/cocc90_40g.gif" class="jlightbox481" border="0" alt="CO.CC:Free Domain" width="90" height="40" /> </a><br />
En me baladant sur internet j&#8217;ai trouvé le moyen d&#8217;avoir un nom de domaine gratuit  l&#8217;avantage du .co.cc c&#8217;est de pouvoir l&#8217;utiliser comme avec un vrais nom de domaine (avec un champ MX (email) si vous le souhaitez) c&#8217;est  dire sans redirection. Il est possible de mettre votre propre serveur DNS (ns), d&#8217;utiliser celui qui vous est fourni dans leur interface ou de faire simplement une redirection. Ce type de domaine est gratuit pendant un an cependant pour un site non commercial le renouvellement se fait gratuitement, pour un site commercial le renouvellement vous en coutera 3$.</p>
<p>Voici un exemple avec mon e-CV:  <a href="http://ewallon.co.cc" target="_blank">http://ewallon.co.cc</a></p>
<p>et pour demander un domaine allez voir sur leur site <a href="http://www.co.cc">www.co.cc</a>. l&#8217;inscription se fait en 5 min et l&#8217;activation de mon nom de domaine s&#8217;est faite presque instantanément.</p>
]]></content:encoded>
			<wfw:commentRss>http://famillewallon.com/2010/02/06/nom-de-domaine-co-cc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 3.6 sour Fedora</title>
		<link>http://famillewallon.com/2010/01/22/firefox-3-6-sour-fedora/</link>
		<comments>http://famillewallon.com/2010/01/22/firefox-3-6-sour-fedora/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 22:10:16 +0000</pubDate>
		<dc:creator>Neowdj</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://famillewallon.com/?p=474</guid>
		<description><![CDATA[Fedora n&#8217;ayant pas encore publié la mise à jour de firefox 3.6. Je vous propose un moyen simple de la faire en utilisant les dépots remi
pour Fedora 12 (en root avec la commande su)
# rpm -Uvh http://rpms.famillecollet.com/remi-release-12.rpm
ou voir ici pour les autres fedora
ensuite
# yum update --enablerepo=remi firefox
actuellement firefox 3.6 ne gère pas l&#8217;openJDK (java) il [...]]]></description>
			<content:encoded><![CDATA[<p>Fedora n&#8217;ayant pas encore publié la mise à jour de firefox 3.6. Je vous propose un moyen simple de la faire en utilisant les dépots remi</p>
<p>pour Fedora 12 (en root avec la commande su)</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># rpm -Uvh http://rpms.famillecollet.com/remi-release-12.rpm</span></div></div>
<p>ou voir <a href="http://blog.famillecollet.com/pages/Config">ici</a> pour les autres fedora<br />
ensuite</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># yum update --enablerepo=remi firefox</span></div></div>
<p>actuellement firefox 3.6 ne gère pas l&#8217;openJDK (java) il vous faudra passer par le JDK de sun</p>
<blockquote><p>Something is wrong. Java is not working.</p></blockquote>
<p>voici un <a href="http://www.zdnet.fr/galerie-image/0,50018840,39712439,00.htm">lien</a> des dernières nouveauté de firefox en image</p>
]]></content:encoded>
			<wfw:commentRss>http://famillewallon.com/2010/01/22/firefox-3-6-sour-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Activer le Caps Lock pour les chiffres sur un ordi portable (KDE)</title>
		<link>http://famillewallon.com/2009/12/27/activer-le-caps-lock-pour-les-chiffres-sur-un-ordi-portable-kde/</link>
		<comments>http://famillewallon.com/2009/12/27/activer-le-caps-lock-pour-les-chiffres-sur-un-ordi-portable-kde/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 12:22:39 +0000</pubDate>
		<dc:creator>Neowdj</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Caps Lock]]></category>
		<category><![CDATA[KDE]]></category>

		<guid isPermaLink="false">http://famillewallon.com/?p=463</guid>
		<description><![CDATA[Je viens de trouver le moyen d&#8217;activer le caps lock pour les chiffres (au lieu de laisser enfoncer la touche shift)
il suffit d&#8217;aller dans
Configuration du système -&#62; Région et langue -&#62; Diposition du clavier
ensuite activer les dispositions du clavier
choisissez le modèle de clavier et entrez la disposition du clavier
ensuite allez dans avancé et dans CapsLock [...]]]></description>
			<content:encoded><![CDATA[<p>Je viens de trouver le moyen d&#8217;activer le caps lock pour les chiffres (au lieu de laisser enfoncer la touche shift)</p>
<p>il suffit d&#8217;aller dans</p>
<blockquote><p>Configuration du système -&gt; Région et langue -&gt; Diposition du clavier</p></blockquote>
<p>ensuite activer les dispositions du clavier</p>
<p>choisissez le modèle de clavier et entrez la disposition du clavier</p>
<p>ensuite allez dans avancé et dans CapsLock key behavior<br />
cochez</p>
<blockquote><p>CapsLock toggles Shift so all keys are affected</p></blockquote>
<p>et pour finir une petite déconnection de la session et le tour est joué</p>
<p><a href="http://files.famillewallon.com/2009/12/keyb_capslock.png" class="jlightbox463"><img class="aligncenter size-medium wp-image-464" title="keyb_capslock" src="http://files.famillewallon.com/2009/12/keyb_capslock-300x169.png" alt="" width="300" height="169" /></a><strong>[EDIT] des bug ont été rencontré sur firefox lors de l&#8217;ouverture d&#8217;un bookmark qui s&#8217;ouvrait dans une nouvelle page[/EDIT]</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://famillewallon.com/2009/12/27/activer-le-caps-lock-pour-les-chiffres-sur-un-ordi-portable-kde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bonne fête à tous</title>
		<link>http://famillewallon.com/2009/12/26/bonne-fete-a-tous/</link>
		<comments>http://famillewallon.com/2009/12/26/bonne-fete-a-tous/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 11:29:11 +0000</pubDate>
		<dc:creator>Neowdj</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://famillewallon.com/?p=460</guid>
		<description><![CDATA[Voici une petit article pour vous souhaiter de bonne fête

]]></description>
			<content:encoded><![CDATA[<p>Voici une petit article pour vous souhaiter de bonne fête</p>
<p><a href="http://files.famillewallon.com/2009/12/2202461831_small_1.jpg" class="jlightbox460"><img class="aligncenter size-medium wp-image-461" title="2202461831" src="http://files.famillewallon.com/2009/12/2202461831_small_1-300x240.jpg" alt="" width="300" height="240" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://famillewallon.com/2009/12/26/bonne-fete-a-tous/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plantage de la connexion internet</title>
		<link>http://famillewallon.com/2009/12/21/plantage-de-la-connexion-internet/</link>
		<comments>http://famillewallon.com/2009/12/21/plantage-de-la-connexion-internet/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 18:25:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://famillewallon.com/?p=453</guid>
		<description><![CDATA[Aujourd&#8217;hui un plantage de connexion a affecté mes 3 serveurs (Zeus, AlphaDev, monitor) et mes deux connexions internet. Donc le blog et mon serveur mail on étaient touché pendant plus d&#8217;une heure.
quelle en est la cause ?
le réseau Numéricable
ensuite mon serveur dovecot a planté à sont tour  
tout est revenu à la normal à [...]]]></description>
			<content:encoded><![CDATA[<p>Aujourd&#8217;hui un plantage de connexion a affecté mes 3 serveurs (Zeus, AlphaDev, monitor) et mes deux connexions internet. Donc le blog et mon serveur mail on étaient touché pendant plus d&#8217;une heure.</p>
<p>quelle en est la cause ?</p>
<p>le réseau Numéricable</p>
<p>ensuite mon serveur dovecot a planté à sont tour <img src='http://famillewallon.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>tout est revenu à la normal à cette heure</p>
<p>je m&#8217;excuse pour là gène occasionnée.</p>
<div id="attachment_455" class="wp-caption aligncenter" style="width: 310px"><a href="http://files.famillewallon.com/2009/12/zeus_21_12_09.png" class="jlightbox453"><img class="size-medium wp-image-455" title="zeus_21_12_09" src="http://files.famillewallon.com/2009/12/zeus_21_12_09-300x133.png" alt="" width="300" height="133" /></a><p class="wp-caption-text">Graph de la connection internet sur le serveur Zeus</p></div>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://famillewallon.com/2009/12/21/plantage-de-la-connexion-internet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Le firewall OpenOffice</title>
		<link>http://famillewallon.com/2009/12/20/le-firewall-openoffice/</link>
		<comments>http://famillewallon.com/2009/12/20/le-firewall-openoffice/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 12:03:05 +0000</pubDate>
		<dc:creator>Neowdj</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://famillewallon.com/?p=447</guid>
		<description><![CDATA[On le sait tous Openffice intègre un firewall

]]></description>
			<content:encoded><![CDATA[<p>On le sait tous Openffice intègre un firewall</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/F011hLZHZrM&amp;hl=fr_FR&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/F011hLZHZrM&amp;hl=fr_FR&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://famillewallon.com/2009/12/20/le-firewall-openoffice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script bash de suppression de fichier</title>
		<link>http://famillewallon.com/2009/12/16/script-bash-de-suppression-de-fichier/</link>
		<comments>http://famillewallon.com/2009/12/16/script-bash-de-suppression-de-fichier/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 23:38:56 +0000</pubDate>
		<dc:creator>Neowdj</dc:creator>
				<category><![CDATA[AFPA]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://famillewallon.com/?p=428</guid>
		<description><![CDATA[Notre formateur nous a demander de créer un script qui permet de faire une suppression de plusieurs fichier.
rien de bien compliqué en soie amis je voulais l&#8217;améliorer un peut. Je me suis souvenu d&#8217;un script bash faisant appelle à une interface graphique et donc j&#8217;ai codé les fichier l&#8217;un à  l&#8217;aide  de zenity (pour le [...]]]></description>
			<content:encoded><![CDATA[<p>Notre formateur nous a demander de créer un script qui permet de faire une suppression de plusieurs fichier.</p>
<p>rien de bien compliqué en soie amis je voulais l&#8217;améliorer un peut. Je me suis souvenu d&#8217;un script bash faisant appelle à une interface graphique et donc j&#8217;ai codé les fichier l&#8217;un à  l&#8217;aide  de zenity (pour le graphique) l&#8217;autre en ligne de commande</p>
<p>Voici le  script de suppression de fichier en ligne de commande <a href="http://files.famillewallon.com/public/scripts/delfiles/delfiles">(disponible ici)</a></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #007800;">$*</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Syntaxe exacte: &nbsp;$0 Nom_du_fichier&quot;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">else</span><br />
<br />
&nbsp;<span style="color: #000000; font-weight: bold;">for</span> fichier <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$*</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">do</span><br />
<span style="color: #666666; font-style: italic;">#test l'existance du fichier</span><br />
<br />
&nbsp;<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$fichier</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
<span style="color: #666666; font-style: italic;"># Boucle de confirmation de l'effacement du fichier</span><br />
&nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Etes vous sur de vouloir effacer <span style="color: #007800;">$fichier</span> (oui/non)?&quot;</span><br />
&nbsp;<span style="color: #c20cb9; font-weight: bold;">read</span> ok&nbsp; &nbsp; <br />
<br />
&nbsp;<span style="color: #000000; font-weight: bold;">while</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ok</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;oui&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ok</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;non&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">do</span><br />
&nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;veillez taper oui pour confirmer non pour annulé .&quot;</span><br />
&nbsp;<span style="color: #c20cb9; font-weight: bold;">read</span> ok<br />
&nbsp;<span style="color: #000000; font-weight: bold;">done</span><br />
<span style="color: #666666; font-style: italic;">#Si ok est &nbsp;strictement = à oui on effacé sinon il y a une erreur</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ok</span>&quot;</span> == <span style="color: #ff0000;">&quot;oui&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<br />
&nbsp;<span style="color: #000000; font-weight: bold;">then</span> <br />
&nbsp;<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #007800;">$fichier</span><br />
&nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$fichier</span> effacé&quot;</span><br />
<br />
&nbsp;<span style="color: #000000; font-weight: bold;">else</span><br />
<br />
&nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$fichier</span> non effacé&quot;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">fi</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">else</span> &nbsp; <br />
&nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$fichier</span> inexistant&quot;</span><br />
<br />
&nbsp;<span style="color: #000000; font-weight: bold;">fi</span> <br />
&nbsp;<span style="color: #000000; font-weight: bold;">done</span><br />
<span style="color: #000000; font-weight: bold;">fi</span></div></td></tr></tbody></table></div>
<p>l&#8217;autre à l&#8217;aide de zenity <a href="http://files.famillewallon.com/public/scripts/delfiles/delfiles_X">(disponible ici)</a></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #007800;">$*</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
zenity <span style="color: #660033;">--info</span> <span style="color: #660033;">--title</span>=<span style="color: #ff0000;">&quot;Script suppression fichier&quot;</span> <span style="color: #660033;">--text</span>=<span style="color: #ff0000;">&quot;Syntaxe exacte: $0 Nom_du_fichier&quot;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">else</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">for</span> fichier <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$*</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">do</span><br />
<span style="color: #666666; font-style: italic;">#test l'existence du fichier</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$fichier</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
<span style="color: #666666; font-style: italic;"># Boucle de confirmation de l'effacement du fichier</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">ok</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>zenity <span style="color: #660033;">--entry</span> <span style="color: #660033;">--title</span>=<span style="color: #ff0000;">&quot;Script suppression fichier&quot;</span> <span style="color: #660033;">--text</span>=<span style="color: #ff0000;">&quot;Etes-vous sur de vouloir effacer <span style="color: #007800;">$fichier</span> (oui/non)?&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">while</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ok</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;oui&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ok</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;non&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ok</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">do</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">ok</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>zenity <span style="color: #660033;">--entry</span> <span style="color: #660033;">--title</span>=<span style="color: #ff0000;">&quot;Script suppression fichier&quot;</span> <span style="color: #660033;">--text</span>=<span style="color: #ff0000;">&quot;veillez taper oui pour confirmer non pour annuler .&quot;</span> <span style="color: #660033;">--entry-text</span>=<span style="color: #ff0000;">&quot;oui ou non&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">done</span><br />
<span style="color: #666666; font-style: italic;">#Si ok est &nbsp;strictement = à oui on efface sinon il y a une erreur</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ok</span>&quot;</span> == <span style="color: #ff0000;">&quot;oui&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">then</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #007800;">$fichier</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zenity <span style="color: #660033;">--info</span> <span style="color: #660033;">--title</span>=<span style="color: #ff0000;">&quot;Script suppression fichier&quot;</span> <span style="color: #660033;">--text</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$fichier</span> vient d'ètre effacé&quot;</span> <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;zenity <span style="color: #660033;">--info</span> <span style="color: #660033;">--title</span>=<span style="color: #ff0000;">&quot;Script suppression fichier&quot;</span> <span style="color: #660033;">--text</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$fichier</span> n'a pas été effacé&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">fi</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">else</span> &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zenity <span style="color: #660033;">--info</span> <span style="color: #660033;">--title</span>=<span style="color: #ff0000;">&quot;Script suppression fichier&quot;</span> <span style="color: #660033;">--text</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$fichier</span> n'existe pas&quot;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">fi</span> <br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">done</span><br />
<span style="color: #000000; font-weight: bold;">fi</span></div></td></tr></tbody></table></div>
<p>avec ceci 3 petit screen</p>
<div class="wp-caption alignnone" style="width: 472px"><a href="http://files.famillewallon.com/public/scripts/delfiles/screenshot/screenshot1.png" class="jlightbox428"><img class="  " src="http://files.famillewallon.com/public/scripts/delfiles/screenshot/screenshot1.png" alt="Screen 1" width="462" height="263" /></a><p class="wp-caption-text">Screen 1</p></div>
<div class="wp-caption alignnone" style="width: 472px"><a href="http://files.famillewallon.com/public/scripts/delfiles/screenshot/screenshot2.png" class="jlightbox428"><img class="  " src="http://files.famillewallon.com/public/scripts/delfiles/screenshot/screenshot2.png" alt="Screen 2" width="462" height="263" /></a><p class="wp-caption-text">Screen 2</p></div>
<div class="wp-caption alignnone" style="width: 472px"><a href="http://files.famillewallon.com/public/scripts/delfiles/screenshot/screenshot3.png" class="jlightbox428"><img class="  " src="http://files.famillewallon.com/public/scripts/delfiles/screenshot/screenshot3.png" alt="Screen 3" width="462" height="263" /></a><p class="wp-caption-text">Screen 3</p></div>
]]></content:encoded>
			<wfw:commentRss>http://famillewallon.com/2009/12/16/script-bash-de-suppression-de-fichier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mon 1er script en bash</title>
		<link>http://famillewallon.com/2009/12/15/mon-1er-script-en-bash/</link>
		<comments>http://famillewallon.com/2009/12/15/mon-1er-script-en-bash/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 22:42:46 +0000</pubDate>
		<dc:creator>Neowdj</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[générateur]]></category>
		<category><![CDATA[réseau]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://famillewallon.com/?p=421</guid>
		<description><![CDATA[Je vous présente mon premier script en BASH qui sert à géner un  fichier ifcfg
l&#8217;utilisation ce fait comme ceci
1$ sh ifgen eth0
pour le moment la vérification des IP n&#8217;est pas complète.
Par ex 888.999.666.555 est accepté alors que dans la logique ca ne devrait pas  ou alors je me trompe  
Vu que le fichier [...]]]></description>
			<content:encoded><![CDATA[<p>Je vous présente mon premier script en BASH qui sert à géner un  fichier ifcfg</p>
<p>l&#8217;utilisation ce fait comme ceci</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sh</span> ifgen eth0</div></td></tr></tbody></table></div>
<p>pour le moment la vérification des IP n&#8217;est pas complète.</p>
<p>Par ex 888.999.666.555 est accepté alors que dans la logique ca ne devrait pas  ou alors je me trompe <img src='http://famillewallon.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Vu que le fichier est un peut long je vous poste le lien direct</p>
<p><a href="http://files.famillewallon.com/public/scripts/ifgen">http://files.famillewallon.com/public/scripts/ifgen</a></p>
]]></content:encoded>
			<wfw:commentRss>http://famillewallon.com/2009/12/15/mon-1er-script-en-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
