<?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=1020911&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [script] Guildwars2 détection du plantage/redémarrage auto. du client]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1020911</link>
		<description><![CDATA[Les sujets les plus récents dans [script] Guildwars2 détection du plantage/redémarrage auto. du client.]]></description>
		<lastBuildDate>Wed, 07 Nov 2012 20:04:03 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [script] Guildwars2 détection du plantage/redémarrage auto. du client]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11431161#p11431161</link>
			<description><![CDATA[<div class="quotebox"><cite>Morithil a écrit&#160;:</cite><blockquote><div><p>Salut, j&#039;ai créer le .sh et je l&#039;ai lancé après avoir lancer le launcher via PoL petit problème il me kill le process GW2 automatiquement avant qu&#039;il vérifie les données en local... du coup toute les 10 15 sec pouf redémarrage du launcher</p></div></blockquote></div><p>idem aussi</p>]]></description>
			<author><![CDATA[dummy@example.com (JamesXB)]]></author>
			<pubDate>Wed, 07 Nov 2012 20:04:03 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11431161#p11431161</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [script] Guildwars2 détection du plantage/redémarrage auto. du client]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11426031#p11426031</link>
			<description><![CDATA[<p>Merci beaucoup !</p>]]></description>
			<author><![CDATA[dummy@example.com (JamesXB)]]></author>
			<pubDate>Wed, 07 Nov 2012 12:52:50 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11426031#p11426031</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [script] Guildwars2 détection du plantage/redémarrage auto. du client]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11189561#p11189561</link>
			<description><![CDATA[<p>Salut, j&#039;ai créer le .sh et je l&#039;ai lancé après avoir lancer le launcher via PoL petit problème il me kill le process GW2 automatiquement avant qu&#039;il vérifie les données en local... du coup toute les 10 15 sec pouf redémarrage du launcher</p>]]></description>
			<author><![CDATA[dummy@example.com (Morithil)]]></author>
			<pubDate>Sat, 20 Oct 2012 15:26:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11189561#p11189561</guid>
		</item>
		<item>
			<title><![CDATA[[script] Guildwars2 détection du plantage/redémarrage auto. du client]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10543271#p10543271</link>
			<description><![CDATA[<p>Un script de détection du plantage et redémarrage automatique du client Guild Wars 2 ... car au téléchargement sous Linux il plante souvent !</p><p>/!\ /!\ /!\ Work in progress, ça bug un peu et ça reste sans doute à optimiser mais pour moi ça marche bien mieux avec que sans ! /!\ /!\ /!\</p><p>Ce script est adapté à l&#039;installation GW2 par PlayOnLinux, sinon il faudra justement adapter la ligne contenant &quot;playonlinux&quot; qui se charge de relancer le jeu.</p><p>A copier dans GW2chk.sh que vous rendrez exécutable et que vous lancerez en daemon par &quot;GW2chk.sh &amp;&quot; après avoir lancé le client de téléchargement du jeu.<br />Contactez-moi si vous avez du mal à le faire fonctionner. <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p><strong>(Inutile et non souhaitable de le lancer en root !)</strong></p><div class="codebox"><pre class="vscroll"><code>#!/bin/bash

WAITTIME=8640 # = 8640 X 10 sec = 24 h minimum (+ les attentes de netstat et si redémarrage du client GW2 ...) on prévoit large.

clear
sleep 3

for (( TIMER=0 ; TIMER &lt; &quot;$WAITTIME&quot; ; TIMER++ ))
do
    netstat -t |grep 81.52.160 &gt;TCPSTATE.log
    TCPCONNECTED=`cat TCPSTATE.log |wc -l`
    TCPCLOSING=`cat TCPSTATE.log |grep CLOSE |wc -l`
    sleep 10
    ISRUNNING=`ps -A|grep Gw2.exe |wc -l`

echo Debug : connected = &quot;$TCPCONNECTED&quot;, closing = &quot;$TCPCLOSING&quot;, GW2 running = &quot;$ISRUNNING&quot;

    if [ &quot;$TCPCONNECTED&quot; -lt 4 ] || [ &quot;$TCPCLOSING&quot; -gt 0 ]
    then
        pkill Gw2.exe
        sleep 3
        nohup /usr/share/playonlinux/playonlinux --run &quot;Guild Wars 2&quot; &amp;
        sleep 10
    fi

    if [ &quot;$TCPCONNECTED&quot; -gt 0 ] &amp;&amp; [ &quot;$ISRUNNING&quot; = 0 ]
    then
        pkill Gw2.exe
        echo &quot;Closing GW2chk.sh &amp; Gw2.exe, Gw2.exe had been stopped by user&quot;
        exit 0
    fi

done
exit 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Mysteroïd)]]></author>
			<pubDate>Mon, 27 Aug 2012 21:59:43 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10543271#p10543271</guid>
		</item>
	</channel>
</rss>
