<?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=1132621&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [Programme C] non-blocking de la fonction system()]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1132621</link>
		<description><![CDATA[Les sujets les plus récents dans [Programme C] non-blocking de la fonction system().]]></description>
		<lastBuildDate>Mon, 10 Dec 2012 20:12:20 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821761#p11821761</link>
			<description><![CDATA[<p>gratias tibi, tu m&#039;as bien aidé! <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Bonne soirée, dans la joie et la bonne humeur.</p>]]></description>
			<author><![CDATA[dummy@example.com (Deepthroat04)]]></author>
			<pubDate>Mon, 10 Dec 2012 20:12:20 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821761#p11821761</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821681#p11821681</link>
			<description><![CDATA[<p>Ah la cte NULL!<br />c&#039;est difficile de savoir qu&#039;il fallait mettre un &quot;NULL&quot;! xD</p>]]></description>
			<author><![CDATA[dummy@example.com (Deepthroat04)]]></author>
			<pubDate>Mon, 10 Dec 2012 20:07:25 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821681#p11821681</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821651#p11821651</link>
			<description><![CDATA[<p>En effet, il faut mettre une liste de paramètre, même si elle est null:</p><div class="codebox"><pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
int main(){
        pid_t pid = fork();
        if(pid == 0)
                execl(&quot;/bin/ls&quot;, &quot;ls&quot;, NULL);
}</code></pre></div><div class="quotebox"><blockquote><div><p>mais juste une question, c&#039;est quoi le type du fichier &quot;/bin/ls&quot;, &quot;ls&quot; a une extension genre .txt?</p></div></blockquote></div><p>C&#039;est un binaire. Tu peux l&#039;appeller /bin/ls.txt si tu veux (m&#039;enfin, j&#039;te conseille de ne pas toucher à ce fichier..)</p>]]></description>
			<author><![CDATA[dummy@example.com (Haleth)]]></author>
			<pubDate>Mon, 10 Dec 2012 20:05:33 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821651#p11821651</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821581#p11821581</link>
			<description><![CDATA[<p>mais juste une question, c&#039;est quoi le type du fichier &quot;/bin/ls&quot;, &quot;ls&quot; a une extension genre .txt?</p>]]></description>
			<author><![CDATA[dummy@example.com (Deepthroat04)]]></author>
			<pubDate>Mon, 10 Dec 2012 20:02:02 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821581#p11821581</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821551#p11821551</link>
			<description><![CDATA[<p>Donc on se retrouve avec ça :</p><p>pid_t pid = fork();<br />&#160; &#160; <br />&#160; &#160; if(pid == 0)<br />&#160; &#160; {<br />&#160; &#160; &#160; &#160; execl(&quot;/bin/ls&quot;, &quot;ls&quot;);<br />&#160; &#160; }</p><p>mais cela ne fonctionne pas dans mon main : <br />&quot;warning: not enough variable arguments to fit a sentinel&quot;</p>]]></description>
			<author><![CDATA[dummy@example.com (Deepthroat04)]]></author>
			<pubDate>Mon, 10 Dec 2012 20:00:22 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821551#p11821551</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821421#p11821421</link>
			<description><![CDATA[<p>J&#039;ai écrit exec ?<br />Mea culpa, je voulais dire: execl</p><p><a href="http://www.linux-kheops.com/doc/man/manfr/man-html-0.9/man3/exec.3.html">http://www.linux-kheops.com/doc/man/man … xec.3.html</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Haleth)]]></author>
			<pubDate>Mon, 10 Dec 2012 19:52:29 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821421#p11821421</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821391#p11821391</link>
			<description><![CDATA[<p>d&#039;accord, je comprend un peu mieux...<br />mais quand tu fais la commande &quot;exec&quot; ça ne peut pas marcher... <br />car exec est une famille de fonction... mais laquelle choisir pour mon ls? (ex : execvpe, execl ....)</p>]]></description>
			<author><![CDATA[dummy@example.com (Deepthroat04)]]></author>
			<pubDate>Mon, 10 Dec 2012 19:51:15 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821391#p11821391</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821091#p11821091</link>
			<description><![CDATA[<p>Bawi<br />Il faut le remplacer par le chemin du fichier à executer.</p>]]></description>
			<author><![CDATA[dummy@example.com (Haleth)]]></author>
			<pubDate>Mon, 10 Dec 2012 19:20:44 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821091#p11821091</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821081#p11821081</link>
			<description><![CDATA[<p>J&#039;ai une question : Le &quot;/bin/ls&quot; est spécifique a la commande ls non?</p>]]></description>
			<author><![CDATA[dummy@example.com (Deepthroat04)]]></author>
			<pubDate>Mon, 10 Dec 2012 19:20:11 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11821081#p11821081</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11810641#p11810641</link>
			<description><![CDATA[<p>Je testerai cela demain <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> <br />merci beaucoup</p>]]></description>
			<author><![CDATA[dummy@example.com (Deepthroat04)]]></author>
			<pubDate>Sun, 09 Dec 2012 22:35:29 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11810641#p11810641</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11805691#p11805691</link>
			<description><![CDATA[<p>Ben, par exemple:</p><div class="codebox"><pre><code>pid_t pid = fork();
if(pid == 0)
     exec(&#039;/bin/ls&#039;, &#039;ls&#039;);</code></pre></div><p>Ce code execute /bin/ls en parallèle du programme principal.<br />Regarde le man pour plus d&#039;info (man fork &amp; man exec)</p>]]></description>
			<author><![CDATA[dummy@example.com (Haleth)]]></author>
			<pubDate>Sun, 09 Dec 2012 15:41:32 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11805691#p11805691</guid>
		</item>
		<item>
			<title><![CDATA[[Programme C] non-blocking de la fonction system()]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11805141#p11805141</link>
			<description><![CDATA[<p>Bonjour,</p><p>Je lance un processus depuis mon programme C via la fonction system().</p><p>Le probleme c&#039;est que le programme se bloque car il attend que le processus lui retourne quelque chose.</p><p>Comment faire en sorte que le programme (en C) continu, sans que le processus lui retourne qqchose?</p><p>Jai entendu parler de la fonction fork() et exec() mais je ne vois pas trop comment les utiliser...</p><p>Cordialement,</p>]]></description>
			<author><![CDATA[dummy@example.com (Deepthroat04)]]></author>
			<pubDate>Sun, 09 Dec 2012 14:52:34 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11805141#p11805141</guid>
		</item>
	</channel>
</rss>
