<?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=1112811&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Nohup ne fonctionne pas...]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1112811</link>
		<description><![CDATA[Les sujets les plus récents dans Nohup ne fonctionne pas....]]></description>
		<lastBuildDate>Thu, 22 Nov 2012 11:44:02 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Nohup ne fonctionne pas...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11599111#p11599111</link>
			<description><![CDATA[<p>Oui j&#039;ai vu mais ça ne change rien ^^</p>]]></description>
			<author><![CDATA[dummy@example.com (corgato)]]></author>
			<pubDate>Thu, 22 Nov 2012 11:44:02 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11599111#p11599111</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Nohup ne fonctionne pas...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598861#p11598861</link>
			<description><![CDATA[<p>Il faut t&#039;arranger à mettre le nohup sur l&#039;appel du script et non pas dans le script comme tu l&#039;as fait. T&#039;as vu que j&#039;avais rajouté le nohup plus loin ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Postmortem)]]></author>
			<pubDate>Thu, 22 Nov 2012 11:11:55 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598861#p11598861</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Nohup ne fonctionne pas...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598801#p11598801</link>
			<description><![CDATA[<p>Non ça ne fonctionne pas comme ça.<br />Je crée bien le fichier mais la connexion se referme juste après du coup la commande est stoppé.<br />C&#039;est pour ça que je voulais mettre en place nohup.</p>]]></description>
			<author><![CDATA[dummy@example.com (corgato)]]></author>
			<pubDate>Thu, 22 Nov 2012 11:02:49 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598801#p11598801</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Nohup ne fonctionne pas...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598761#p11598761</link>
			<description><![CDATA[<div class="quotebox"><cite>corgato a écrit&#160;:</cite><blockquote><div><p>Je l&#039;appelles via SSH2 :</p><div class="codebox"><pre><code>&lt;?php
if($connexion = @ssh2_connect($donnees[&#039;serveur_ip&#039;], $donnees[&#039;serveur_port&#039;]))
{
	if(@ssh2_auth_password($connexion, $donnees[&#039;serveur_login&#039;], decode_mdp_serveur($donnees[&#039;serveur_pass&#039;])))
	{
		$cmd1 = &quot;cd /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/ &amp;&amp; STEAMEXE=steamcmd ./steam.sh +login MON_LOGIN MON_MDP +force_install_dir &quot;.$donnees[&#039;repertoire&#039;].&quot; +app_update 215360 +exit &amp;&amp; cd &quot;.$donnees[&#039;repertoire&#039;].&quot; &amp;&amp; chmod 0777 -R .&quot;;

		$commande = &quot;#!/bin/bash\nnohup &quot;.$cmd1.&quot; &gt;&gt; nohup.out 2&gt;&gt; nohup.out &amp;\n&quot;;
		$stream = ssh2_exec($connexion, &quot;cd /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot; &amp;&amp; echo &#039;&quot;.$commande.&quot;&#039; &gt; /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/fichier_commande/script_&quot;.$id_commande.&quot;.sh &amp;&amp; chmod 755 /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/fichier_commande/script_&quot;.$id_commande.&quot;.sh &amp;&amp; ./&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/fichier_commande/script_&quot;.$id_commande.&quot;.sh&quot;);
		stream_set_blocking($stream, false);
		$output = stream_get_contents($stream);

		sleep(10);

		return &#039;&lt;br /&gt;Mise à jour du Serveur En cours !&#039;;
	}
	else
		return &#039;Erreur Authentification&#039;;
	}
else
	return &#039;Erreur Connexion&#039;;</code></pre></div></div></blockquote></div><p>Comme je te disais, je connais pas php mais est-ce que ceci fonctionnerait ??</p><div class="codebox"><pre><code>&lt;?php
if($connexion = @ssh2_connect($donnees[&#039;serveur_ip&#039;], $donnees[&#039;serveur_port&#039;]))
{
	if(@ssh2_auth_password($connexion, $donnees[&#039;serveur_login&#039;], decode_mdp_serveur($donnees[&#039;serveur_pass&#039;])))
	{
		$cmd1 = &quot;cd /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/ &amp;&amp; STEAMEXE=steamcmd ./steam.sh +login MON_LOGIN MON_MDP +force_install_dir &quot;.$donnees[&#039;repertoire&#039;].&quot; +app_update 215360 +exit &amp;&amp; cd &quot;.$donnees[&#039;repertoire&#039;].&quot; &amp;&amp; chmod 0777 -R .&quot;;

		$commande = &quot;#!/bin/bash\n&quot;.$cmd1.&quot;\n&quot;;
		$stream = ssh2_exec($connexion, &quot;cd /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot; &amp;&amp; echo &#039;&quot;.$commande.&quot;&#039; &gt; /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/fichier_commande/script_&quot;.$id_commande.&quot;.sh &amp;&amp; chmod 755 /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/fichier_commande/script_&quot;.$id_commande.&quot;.sh &amp;&amp; nohup ./&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/fichier_commande/script_&quot;.$id_commande.&quot;.sh &amp;&quot;);
		stream_set_blocking($stream, false);
		$output = stream_get_contents($stream);

		sleep(10);

		return &#039;&lt;br /&gt;Mise à jour du Serveur En cours !&#039;;
	}
	else
		return &#039;Erreur Authentification&#039;;
	}
else
	return &#039;Erreur Connexion&#039;;</code></pre></div><p>M&#039;enfin, ça m&#039;a l&#039;air bien compliqué quand même !</p>]]></description>
			<author><![CDATA[dummy@example.com (Postmortem)]]></author>
			<pubDate>Thu, 22 Nov 2012 11:01:09 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598761#p11598761</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Nohup ne fonctionne pas...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598281#p11598281</link>
			<description><![CDATA[<p>Je l&#039;appelles via SSH2 :</p><div class="codebox"><pre><code>&lt;?php
if($connexion = @ssh2_connect($donnees[&#039;serveur_ip&#039;], $donnees[&#039;serveur_port&#039;]))
{
	if(@ssh2_auth_password($connexion, $donnees[&#039;serveur_login&#039;], decode_mdp_serveur($donnees[&#039;serveur_pass&#039;])))
	{
		$cmd1 = &quot;cd /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/ &amp;&amp; STEAMEXE=steamcmd ./steam.sh +login MON_LOGIN MON_MDP +force_install_dir &quot;.$donnees[&#039;repertoire&#039;].&quot; +app_update 215360 +exit &amp;&amp; cd &quot;.$donnees[&#039;repertoire&#039;].&quot; &amp;&amp; chmod 0777 -R .&quot;;

		$commande = &quot;#!/bin/bash\nnohup &quot;.$cmd1.&quot; &gt;&gt; nohup.out 2&gt;&gt; nohup.out &amp;\n&quot;;
		$stream = ssh2_exec($connexion, &quot;cd /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot; &amp;&amp; echo &#039;&quot;.$commande.&quot;&#039; &gt; /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/fichier_commande/script_&quot;.$id_commande.&quot;.sh &amp;&amp; chmod 755 /&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/fichier_commande/script_&quot;.$id_commande.&quot;.sh &amp;&amp; ./&quot;.$donnees[&#039;serveur_dossier&#039;].&quot;/fichier_commande/script_&quot;.$id_commande.&quot;.sh&quot;);
		stream_set_blocking($stream, false);
		$output = stream_get_contents($stream);

		sleep(10);

		return &#039;&lt;br /&gt;Mise à jour du Serveur En cours !&#039;;
	}
	else
		return &#039;Erreur Authentification&#039;;
	}
else
	return &#039;Erreur Connexion&#039;;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (corgato)]]></author>
			<pubDate>Thu, 22 Nov 2012 10:25:00 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598281#p11598281</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Nohup ne fonctionne pas...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598161#p11598161</link>
			<description><![CDATA[<p>Il faudrait que tu montres comment tu l&#039;appelles via php... Perso, j&#039;y connais rien en php mais ça donnera plus d&#039;indications à ceux qui connaissent pour t&#039;aider.</p>]]></description>
			<author><![CDATA[dummy@example.com (Postmortem)]]></author>
			<pubDate>Thu, 22 Nov 2012 10:13:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598161#p11598161</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Nohup ne fonctionne pas...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598051#p11598051</link>
			<description><![CDATA[<p>Quand je le mets dans un fichier sans le nohup, et l&#039;exécute manuellement sa fonctionne très bien.<br />Mais comme je dois l&#039;exécuter automatiquement via un PHP, grâce à la lib ssh2, ça pose problème vu que la connexion se referme directement après du coup la commande se kill.</p><p>Et ce n&#039;est pas possible de faire ça justement avec nohup mais en prenant en compte toutes la ligne ?</p>]]></description>
			<author><![CDATA[dummy@example.com (corgato)]]></author>
			<pubDate>Thu, 22 Nov 2012 10:01:37 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11598051#p11598051</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Nohup ne fonctionne pas...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11596771#p11596771</link>
			<description><![CDATA[<p>Rien d&#039;anormal à ce que cela ne fonctionne pas ...<br />Seule la partie <strong><em>cd /games/</em></strong> est appliquée dans le contexte du nohup...</p><p>+1 pour Postmortem, sinon une altérnative : utiliser screen</p>]]></description>
			<author><![CDATA[dummy@example.com (Totor)]]></author>
			<pubDate>Thu, 22 Nov 2012 06:59:41 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11596771#p11596771</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Nohup ne fonctionne pas...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11595041#p11595041</link>
			<description><![CDATA[<p>Salut,<br />Essaie de mettre ta commande dans un script, sans le nohup.<br />Puis tu lances le script avec nohup.<br />C&#039;est juste une idée comme ça !</p>]]></description>
			<author><![CDATA[dummy@example.com (Postmortem)]]></author>
			<pubDate>Wed, 21 Nov 2012 22:47:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11595041#p11595041</guid>
		</item>
		<item>
			<title><![CDATA[Nohup ne fonctionne pas...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11594841#p11594841</link>
			<description><![CDATA[<p>Bonsoir,</p><p>je n&#039;arrive pas a créer un script qui me permet de mettre à jour mon serveur de jeu...<br />Enfaite des que je met la commande nohup ça ne fonctionne pas... Et j&#039;en ai besoin, sinon la commande se kill quand je ferme la connexion ssh...<br />Auriez vous une idée <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> ?</p><div class="codebox"><pre><code>#!/bin/bash
nohup cd /games/ &amp;&amp; STEAMEXE=steamcmd ./steam.sh +login MON_LOGIN MON_MDP +force_install_dir /games/kl +app_update 215360 +exit &amp;&amp; cd /games/kl &amp;&amp; chmod 0777 -R . &gt;&gt; nohup.out 2&gt;&gt; nohup.out &amp;</code></pre></div><p>Merci, et bonne soirée !</p>]]></description>
			<author><![CDATA[dummy@example.com (corgato)]]></author>
			<pubDate>Wed, 21 Nov 2012 22:30:19 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11594841#p11594841</guid>
		</item>
	</channel>
</rss>
