<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=357989&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Cron et GREP]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=357989</link>
		<description><![CDATA[Les sujets les plus récents dans Cron et GREP.]]></description>
		<lastBuildDate>Fri, 13 Nov 2009 11:26:59 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3064573#p3064573</link>
			<description><![CDATA[<div class="quotebox"><cite>orangepulpe a écrit&#160;:</cite><blockquote><div><p>Merci pour ton aide Totor.<br />J&#039;ai bien compris pour la recherche du motif. Mais pourrait tu m&#039;expliquer le fonctionne du tee notament pour </p><div class="codebox"><pre><code>tee /etc/bin/mrtg /etc/bin/mrtg</code></pre></div><p>Encore merci</p><p>Orangepulpe</p></div></blockquote></div><p>Une erreur s&#039;est glissé dans mon script (il y a un /etc/bin/mrtg en trop)<br />la commande tee permet d&#039;écrire le contenu de l&#039;entrée standard dans un/plusieurs fichiers et de le renvoyer vers la sortie standard.</p><p>l&#039;option -a permet d&#039;ajouter au(x) fichier(s) Sans cette option, le contenu des fichiers est effacé.</p>]]></description>
			<author><![CDATA[dummy@example.com (Totor)]]></author>
			<pubDate>Fri, 13 Nov 2009 11:26:59 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3064573#p3064573</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3064311#p3064311</link>
			<description><![CDATA[<p>Merci pour ton aide Totor.<br />J&#039;ai bien compris pour la recherche du motif. Mais pourrait tu m&#039;expliquer le fonctionne du tee notament pour </p><div class="codebox"><pre><code>tee /etc/bin/mrtg /etc/bin/mrtg</code></pre></div><p>Encore merci</p><p>Orangepulpe</p>]]></description>
			<author><![CDATA[dummy@example.com (orangepulpe)]]></author>
			<pubDate>Fri, 13 Nov 2009 09:21:05 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3064311#p3064311</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3064209#p3064209</link>
			<description><![CDATA[<p>Bonjour,</p><div class="codebox"><pre><code>/opt/lum/ls/bin/i4blt -s -n server_name | grep  &quot;0[,\.]00&quot;|tee /etc/bin/mrtg /etc/bin/mrtg</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Totor)]]></author>
			<pubDate>Fri, 13 Nov 2009 08:25:17 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3064209#p3064209</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062626#p3062626</link>
			<description><![CDATA[<p>Essaies une double redirection &gt;&gt; au lieu d&#039;un simple &gt;, parce que ton cron lance la commande à intervalle régulière, et lorsque ton grep ne donne rien, ca stocke dans ton fichier un vide, en effacant ce que tu avais stocké avant. Je pense que ca vient de là.</p>]]></description>
			<author><![CDATA[dummy@example.com (zapple)]]></author>
			<pubDate>Thu, 12 Nov 2009 17:01:55 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062626#p3062626</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062460#p3062460</link>
			<description><![CDATA[<p>ça ne change rien<br />j&#039;obtiens toujours un fichier vide....<br />Je comprends pas.. et je sais pas quels option de la commande je dois utiliser....</p><p>orangepulpe</p>]]></description>
			<author><![CDATA[dummy@example.com (orangepulpe)]]></author>
			<pubDate>Thu, 12 Nov 2009 15:35:11 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062460#p3062460</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062409#p3062409</link>
			<description><![CDATA[<p>peut être avec [0,00]</p><p>http://pwet.fr/man/linux/commandes/grep</p>]]></description>
			<author><![CDATA[dummy@example.com (grandtoubab)]]></author>
			<pubDate>Thu, 12 Nov 2009 15:06:52 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062409#p3062409</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062403#p3062403</link>
			<description><![CDATA[<p>Oui je récupère bien les infos que je souhaite avec la ligne suivante:</p><div class="codebox"><pre><code>/opt/lum/ls/bin/i4blt -s -n server_name | grep  &quot;0,00&quot;</code></pre></div><p>Je récupère bien un fichier avec la ligne suivante:</p><div class="codebox"><pre><code>/opt/lum/ls/bin/i4blt -s -n server_name | grep  [b]&quot;0,00&quot;[/b] &gt; file</code></pre></div><p>Je récupère bien un fichier avec la ligne suivante: </p><div class="codebox"><pre><code>/opt/lum/ls/bin/i4blt -s -n server_name | grep  [b]&quot;0.00&quot;[/b] &gt; file</code></pre></div><p>Par contre quand je mets la ligne suivant dans un cron, je récupère un fichier vide ...:</p><div class="codebox"><pre><code>/opt/lum/ls/bin/i4blt -s -n server_name | grep  &quot;0,00&quot; &gt; file</code></pre></div><p>Orangepulpe</p>]]></description>
			<author><![CDATA[dummy@example.com (orangepulpe)]]></author>
			<pubDate>Thu, 12 Nov 2009 15:05:19 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062403#p3062403</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062396#p3062396</link>
			<description><![CDATA[<p>Quand tu lances ça:</p><div class="codebox"><pre><code>/opt/lum/ls/bin/i4blt -s -n server_name | grep  &quot;0,00&quot;</code></pre></div><p>tu as bien une réponse?</p>]]></description>
			<author><![CDATA[dummy@example.com (wido)]]></author>
			<pubDate>Thu, 12 Nov 2009 15:00:28 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062396#p3062396</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062374#p3062374</link>
			<description><![CDATA[<p>Oui c&#039;est bien &quot;Product Name&quot;, mais le problème concerne la recherche du &quot;0.00&quot;.<br />Pour le product name ça fonctionne parfaitement avec le cron ou en manuel, alors qu&#039;avec la recherche du &quot;0.00&quot; ça ne fonctionne pas avec le cron.</p><br /><p>J&#039;ai fait encore d&#039;autres tests, en passant par un script intermédiaire et ça ne fonctionne pas...</p><p>orangepulpe</p>]]></description>
			<author><![CDATA[dummy@example.com (orangepulpe)]]></author>
			<pubDate>Thu, 12 Nov 2009 14:46:26 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062374#p3062374</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062357#p3062357</link>
			<description><![CDATA[<p>Bonjour,</p><div class="codebox"><pre><code>grep  &quot;Product NAme&quot;</code></pre></div><p>ce ne serait pas</p><div class="codebox"><pre><code>grep  &quot;Product Name&quot;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (wido)]]></author>
			<pubDate>Thu, 12 Nov 2009 14:37:53 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062357#p3062357</guid>
		</item>
		<item>
			<title><![CDATA[Cron et GREP]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062177#p3062177</link>
			<description><![CDATA[<p>Bonjour à tous,</p><p>Je suis nouveau sur le&#160; forum, mais j&#039;utilise Ubuntu depuis un petit bout de temps.<br />Je suis actuellement bloqué à cause d&#039;un script pour la mise en place de MRTG.</p><p>Voici la ligne qui me pose problème:<br />(J&#039;utilise i4blt pour récupérer les informations d&#039;un serveur de licence IBM)</p><div class="codebox"><pre><code>/opt/lum/ls/bin/i4blt -s -n server_name | grep  &quot;0,00&quot; &gt; /etc/bin/mrtg</code></pre></div><p>Lorsque j&#039;éxecute le script contenant le code précédent ça fonctionne, par contre dès que je l&#039;utilise dans le cron ça pose problème. De plus j&#039;utilise quasiment la même ligne dans mon cron, mais avec un autre pattern pour le grep et ça fonctionne:</p><div class="codebox"><pre><code>/opt/lum/ls/bin/i4blt -s -n server_name | grep  &quot;Product NAme&quot; &gt; /etc/bin/mrtg</code></pre></div><p>Pourriez-vous m&#039;aidez ou me dire comment écrire un script réalisant cette commande, qui soit entièrement utilisable par le cron?</p><p>Merci d&#039;avance</p><p>orangepulpe</p>]]></description>
			<author><![CDATA[dummy@example.com (orangepulpe)]]></author>
			<pubDate>Thu, 12 Nov 2009 13:08:22 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3062177#p3062177</guid>
		</item>
	</channel>
</rss>
