Deutsch   English   Français   Italiano  
<m2v8xp5j8v.fsf@macseb.seki.fr>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!news.gegeweb.eu!gegeweb.org!daedelys.org!.POSTED.2a01:e0a:aad:d091:58e:18f3:fc56:af34!not-for-mail
From: =?utf-8?Q?S=C3=A9bastien?= Kirche
 <sebastien.kirche.no@spam.free.fr.invalid>
Newsgroups: fr.comp.os.linux.configuration
Subject: Re: setsid avec des variables d'environnement
Date: Tue, 08 Feb 2022 19:02:56 +0100
Organization: Aucune.
Message-ID: <m2v8xp5j8v.fsf@macseb.seki.fr>
References: <m2r18rzvld.fsf@macseb.seki.fr>
	<stbg2i$dja$1@ns507557.dodin.fr.nf> <sth9dv$24s$12@shakotay.alphanet.ch>
Reply-To: =?utf-8?Q?S=C3=A9bastien?= Kirche <sebastien.kirche@free.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: ip-172-31-20-214.eu-west-1.compute.internal; posting-host="2a01:e0a:aad:d091:58e:18f3:fc56:af34";
	logging-data="735152"; mail-complaints-to="usenet@ip-172-31-20-214.eu-west-1.compute.internal"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (x86_64-apple-darwin14.5.0)
X-Face:  ;T}O6aj2o*d:|9po%NCuYvExN3]<#cHr0"FaWCh[}WVn6&@L)YWO'&6AO5Ex:MX=H;.^e}o Td*OaFQEBc_xu%+ChwRl!KK`I'["$^aO1gIN{4OyBdO@1HHD5YO#[kiVCk|/-|mmYnU8yTp+eOv."d 1.G3;ro0Q/`,UY+vY/#5b/{OYxE+X\)tc~p~1vbmZ!o4sciW+e8MW|Pz|nl`l*}]8[#1zQO"]d2*{d wrTKu]5t<lBGxO->*Gy_pm3e8o=:(c_ju'zlQ<[oJ|\XjgQQmWZC7S]-Fmp\eBHnBO']/te~/;\@l" D#:h)8Q
Bytes: 2285
Lines: 23

Le 3 f=C3=A9vrier 2022 =C3=A0 20:11, Jo Engo a formul=C3=A9 :
> Le Tue, 1 Feb 2022 15:28:34 +0100, Pascal Hambourg a =C3=A9crit=C2=A0:
>=20
> > setsid /bin/sh -c $cmd
>=20
> Oui c'est mieux.

Pas ici:
setsid: failed to set the controlling terminal: inappropriate ioctl for dev=
ice
setsid: failed to execute <contenu de $cmd avec variable + commande>

Dans le man, j'avais vu "-c /  --ctty set the controlling terminal to the
current one"

Vous ne confondriez pas avec un -c <commande> ? Parce que dans ce cas,
=C3=A7a va coincer, le script qui lance la commande setsid est appel=C3=A9 =
par cron.

Alternative : est-ce que =C3=A7a pourrait se faire par un "setsid sh -c
$cmd" ? =C3=87a commence =C3=A0 =C3=AAtre tordu :(

--=20
S=C3=A9bastien Kirche