<?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=361312&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / script contab]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=361312</link>
		<description><![CDATA[Les sujets les plus récents dans script contab.]]></description>
		<lastBuildDate>Wed, 02 Dec 2009 09:03:44 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3111225#p3111225</link>
			<description><![CDATA[<p>excellent, </p><p>merci sa marche nickel de chez chrome (de chez google).</p><p>Grand merci a toi oktoberfest, c&#039;est vrai parfait .</p>]]></description>
			<author><![CDATA[dummy@example.com (tester)]]></author>
			<pubDate>Wed, 02 Dec 2009 09:03:44 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3111225#p3111225</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3106075#p3106075</link>
			<description><![CDATA[<p>J&#039;ai essayé sous root et sous mon utilisateur et ça fonctionne dans les deux cas.<br />Maintenant en tant qu&#039;utilisateur lambda, tu n&#039;auras pas le droit de modifier la crontab de root.<br />Pour faire ça, il te faudra faire un sudo &lt;ton script&gt;</p>]]></description>
			<author><![CDATA[dummy@example.com (compte supprimé)]]></author>
			<pubDate>Mon, 30 Nov 2009 07:40:13 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3106075#p3106075</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3104308#p3104308</link>
			<description><![CDATA[<div class="codebox"><pre><code>crontab -l</code></pre></div><p>je ne pense pas quel te liste le contenu de root mais plutot le tien</p>]]></description>
			<author><![CDATA[dummy@example.com (n3o51)]]></author>
			<pubDate>Sun, 29 Nov 2009 13:29:08 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3104308#p3104308</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3100300#p3100300</link>
			<description><![CDATA[<p>je vais reessayer et te tiendrai au courant <br />merci</p>]]></description>
			<author><![CDATA[dummy@example.com (tester)]]></author>
			<pubDate>Fri, 27 Nov 2009 16:41:44 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3100300#p3100300</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3097348#p3097348</link>
			<description><![CDATA[<p>Ben chez moi ça marche... comprend pas.</p><div class="codebox"><pre><code>&gt; cat a.sh
#!/bin/bash

echo &quot;&quot;
echo &quot;========================&quot;
echo &quot;= Ajoute de la Crontab =&quot;
echo &quot;========================&quot;

crontab &lt;&lt; FIN
* 1 * * *     /usr/local/contabjobs/checkFS.sh
0 1 * * *       /etc/init.d/apache2 restart
0 1 * * *       /etc/init.d/tomcat5.5 restart
FIN

echo &quot;&quot;
&gt; ./a.sh

========================
= Ajoute de la Crontab =
========================

&gt; crontab -l
* 1 * * *     /usr/local/contabjobs/checkFS.sh
0 1 * * *       /etc/init.d/apache2 restart
0 1 * * *       /etc/init.d/tomcat5.5 restart
&gt;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (compte supprimé)]]></author>
			<pubDate>Thu, 26 Nov 2009 12:31:51 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3097348#p3097348</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3097055#p3097055</link>
			<description><![CDATA[<p>désolé l&#039;ami sa marche pas.</p><p>J&#039;ai rien qd je fais un crontab -e</p>]]></description>
			<author><![CDATA[dummy@example.com (tester)]]></author>
			<pubDate>Thu, 26 Nov 2009 10:20:31 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3097055#p3097055</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3095292#p3095292</link>
			<description><![CDATA[<div class="codebox"><pre><code>#!/bin/bash

echo &quot;&quot;
echo &quot;========================&quot;
echo &quot;= Ajoute de la Crontab =&quot;
echo &quot;========================&quot;

crontab &lt;&lt; FIN
* 1 * * *     /usr/local/contabjobs/checkFS.sh
0 1 * * *       /etc/init.d/apache2 restart
0 1 * * *       /etc/init.d/tomcat5.5 restart
FIN

echo &quot;&quot;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (compte supprimé)]]></author>
			<pubDate>Wed, 25 Nov 2009 15:53:43 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3095292#p3095292</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3095285#p3095285</link>
			<description><![CDATA[<p>tu aura pas un&#160; &#160;truc pour faire sa d&#039;une seul traite ?</p>]]></description>
			<author><![CDATA[dummy@example.com (tester)]]></author>
			<pubDate>Wed, 25 Nov 2009 15:51:48 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3095285#p3095285</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3094975#p3094975</link>
			<description><![CDATA[<p>Je viens de comprendre ce que tu veux faire.<br />Le plus simple :</p><div class="codebox"><pre><code>#!/bin/bash

.....
echo &quot;&quot;
echo &quot;========================&quot;
echo &quot;= Ajoute de la Crontab =&quot;
echo &quot;========================&quot;
echo &#039;* 1 * * *     /usr/local/contabjobs/checkFS.sh&#039; &gt; /tmp/ma_crontab 
echo &#039;0 1 * * *       /etc/init.d/apache2 restart&#039; &gt;&gt; /tmp/ma_crontab
echo &#039;0 1 * * *       /etc/init.d/tomcat5.5 restart&#039; &gt;&gt; /tmp/ma_crontab
crontab -u root /tmp/ma_crontab
echo &quot;&quot;</code></pre></div><p>Tu créés un fichier et tu le fournis à crontab.</p><p>Note : C&#039;est normal que ça ne marche pas ton script, chaque appel à crontab remplace la crontab par ce que tu lui fournis en entrée.</p>]]></description>
			<author><![CDATA[dummy@example.com (compte supprimé)]]></author>
			<pubDate>Wed, 25 Nov 2009 14:00:05 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3094975#p3094975</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3094962#p3094962</link>
			<description><![CDATA[<p>dans contab -l j&#039;ai</p><br /><p>*# m h&#160; dom mon dow&#160; &#160;command<br />0 1 * * *&#160; &#160; &#160; &#160;/etc/init.d/tomcat5.5 restart</p><p>alors que dans mon script sh je fais :</p><br /><p>#!/bin/bash</p><p>.....<br />echo &quot;&quot;<br />echo &quot;========================&quot;<br />echo &quot;= Ajoute de la Crontab =&quot;<br />echo &quot;========================&quot;<br />echo &#039;* 1 * * * &#160; &#160; /usr/local/contabjobs/checkFS.sh&#039; | crontab -u root -<br />echo &#039;0 1 * * *&#160; &#160; &#160; &#160;/etc/init.d/apache2 restart<br />echo &#039;0 1 * * *&#160; &#160; &#160; &#160;/etc/init.d/tomcat5.5 restart&#039; | crontab -u root -<br />echo &quot;&quot;</p><br /><p>Comme tu peux le constater&#160; j&#039;ecris plusieurs taches dans ma crontab, pourtant au final&#160; il efface systematiquement les premiere taches pour en lancer une.<br />Alors que je devrai en avoir 3.</p><br /><p>Mon but est d&#039;avoir le resultat suivant</p><p>*# m h&#160; dom mon dow&#160; &#160;command<br />* 1 * * * &#160; &#160; /usr/local/contabjobs/checkFS.sh<br />0 1 * * *&#160; &#160; &#160; &#160;/etc/init.d/apache2 restart<br />0 1 * * *&#160; &#160; &#160; &#160;/etc/init.d/tomcat5.5 restart</p><p>J&#039;espere que c&#039;est plus clair ainsi</p>]]></description>
			<author><![CDATA[dummy@example.com (tester)]]></author>
			<pubDate>Wed, 25 Nov 2009 13:54:53 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3094962#p3094962</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3094571#p3094571</link>
			<description><![CDATA[<p>Salut,</p><p>c&#039;est pas clair tout ça.<br />Tu as quoi dans ton crontab ?</p><div class="codebox"><pre><code>crontab -l</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (compte supprimé)]]></author>
			<pubDate>Wed, 25 Nov 2009 10:52:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3094571#p3094571</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3094567#p3094567</link>
			<description><![CDATA[<p>Personne ?</p>]]></description>
			<author><![CDATA[dummy@example.com (tester)]]></author>
			<pubDate>Wed, 25 Nov 2009 10:50:36 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3094567#p3094567</guid>
		</item>
		<item>
			<title><![CDATA[script contab]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3094426#p3094426</link>
			<description><![CDATA[<p>Bonjour, </p><p>Je suis newbie en script, je cherche faire un script dans lequelle , je planifie deux crontab.<br />Je souhaiterai concatener mes crons&#160; afin qu&#039;il soit ecrit les uns apres les autre.</p><p>Actuellement, quand je lance mon script, la premiere tache est ecrasser par la deuxieme.</p><p>Pouvez vous m&#039;aider?</p><p>Merci</p>]]></description>
			<author><![CDATA[dummy@example.com (tester)]]></author>
			<pubDate>Wed, 25 Nov 2009 09:30:29 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3094426#p3094426</guid>
		</item>
	</channel>
</rss>
