<?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=1101431&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / script en sous-tache]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1101431</link>
		<description><![CDATA[Les sujets les plus récents dans script en sous-tache.]]></description>
		<lastBuildDate>Mon, 12 Nov 2012 00:03:38 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  script en sous-tache]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11482441#p11482441</link>
			<description><![CDATA[<p>re,</p><p>bon je merdouille pour mettre ca au demarage.<br />Directement dans gnome sessions propriety, ca ne donne rien. En collant la commande dans un script sh que j&#039;appele au boot idem. Je n&#039;arrive pas a lancer ce truc en tache de fond au demarage</p><p>merci,</p>]]></description>
			<author><![CDATA[dummy@example.com (los_tintinos)]]></author>
			<pubDate>Mon, 12 Nov 2012 00:03:38 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11482441#p11482441</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script en sous-tache]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11479921#p11479921</link>
			<description><![CDATA[<p>bonjour,</p><p>bon j&#039;ai pas tout bien compris mais ça fonctionne :-))<br />Par contre ça ne fonctionne pas au boot, si je met cette commande dans session-gnome-proprieté mais ca ne donne rien. <br />Faut que je bidouille un script pour ça.<br />Merci,</p>]]></description>
			<author><![CDATA[dummy@example.com (los_tintinos)]]></author>
			<pubDate>Sun, 11 Nov 2012 19:39:16 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11479921#p11479921</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script en sous-tache]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11475031#p11475031</link>
			<description><![CDATA[<p>Il faut détacher le script du terminal après avoir redirigé les entrées-sorties (ce n&#039;est pas obligatoire, mais c&#039;est plus propre)</p><div class="codebox"><pre><code>$ script &amp;&gt;/dev/null &lt; /dev/null &amp; disown -h</code></pre></div><p>Une autre possibilité serait d&#039;en faire un démon (dans ce cas c&#039;est root qui le lance).</p><p>Regarde la doc (je ne sais pas ce qu&#039;elle vaut) : [doc]comment transformer un programme en service[/doc].</p>]]></description>
			<author><![CDATA[dummy@example.com (Bousky)]]></author>
			<pubDate>Sun, 11 Nov 2012 13:07:16 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11475031#p11475031</guid>
		</item>
		<item>
			<title><![CDATA[script en sous-tache]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11474041#p11474041</link>
			<description><![CDATA[<p>Bonjour,</p><p>J&#039;ai beau chercher un peu partout, je ne trouve pas de solution a mon problème. J&#039;ai pomper (puis legerement modifié) un script qui retourne mon affichage et mes pointeurs quand je bascule mon ecran&#160; (je suis sur un HP touchsmart TM2 -tablet pc tactile-). Le srrcipt fonctionne bien mais que dans un terminal. Dés que je ferme le terminal, le script ne fonctionne plus :-(</p><p>Mon script s&#039;appel auto-rotate, le voici :</p><div class="codebox"><pre class="vscroll"><code>old=&quot;0&quot;
while true; do
    if [ -e /sys/devices/platform/hp-wmi/tablet ]; then
        new=`cat /sys/devices/platform/hp-wmi/tablet`
        if [ &quot;$new&quot; != &quot;$old&quot; ]; then
            if [ $new == &quot;1&quot; ]; then
                xrandr -o inverted  
synclient TouchpadOff=1 

    xsetwacom set &quot;Wacom ISDv4 E3 Pen stylus&quot; rotate half
    xsetwacom set &quot;Wacom ISDv4 E3 Pen eraser&quot; rotate half
    xsetwacom set &quot;Wacom ISDv4 E3 Finger touch&quot; rotate half
    onboard &amp;
            elif [ $new == &quot;0&quot; ]; then
              xrandr -o normal 
synclient TouchpadOff=0

    xsetwacom set &quot;Wacom ISDv4 E3 Pen stylus&quot; rotate none
    xsetwacom set &quot;Wacom ISDv4 E3 Pen eraser&quot; rotate none
    xsetwacom set &quot;Wacom ISDv4 E3 Finger touch&quot; rotate none  
   killall onboard
            fi
            old=$new
        fi
    fi
    sleep 0.5s
done</code></pre></div><br /><p>Si je lance avec la commande &amp; :</p><div class="codebox"><pre><code>seb@seb-Touchsmart-TM2:~$ auto-rotate &amp;
[1] 20558
seb@seb-Touchsmart-TM2:~$ </code></pre></div><p>C&#039;est bien j&#039;ai le main mais le script restant attaché au terminal, il ne fonctionne plus dés que je quitte ce dernier.</p><p>si je tente un nohup :</p><div class="codebox"><pre><code>seb@seb-Touchsmart-TM2:~$ nohup auto-rotate
nohup: les entrées sont ignorées et la sortie est ajoutée à «nohup.out»</code></pre></div><p>Je souhaiterais que ce script se lance au boot&#160; et tourne tranquillement en tache de fond pour agir quand j&#039;en ai besoin. Je l&#039;ai rajouté a gnome-session-proprieties sans succés.</p><p>Voila, si quelqu&#039;un avez une ch&#039;tite idée.</p><p>Kén@vo</p>]]></description>
			<author><![CDATA[dummy@example.com (los_tintinos)]]></author>
			<pubDate>Sun, 11 Nov 2012 11:09:05 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11474041#p11474041</guid>
		</item>
	</channel>
</rss>
