Warning: mysqli::__construct(): (HY000/2002): No connection could be made because the target machine actively refused it. in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (2002) No connection could be made because the target machine actively refused it.
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <stbg2i$dja$1@ns507557.dodin.fr.nf>
Deutsch   English   Français   Italiano  
<stbg2i$dja$1@ns507557.dodin.fr.nf>

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

Path: ...!weretis.net!feeder6.news.weretis.net!i2pn.org!dodin.fr.nf!.POSTED.plouf.fr.eu.org!not-for-mail
From: Pascal Hambourg <pascal@plouf.fr.eu.org>
Newsgroups: fr.comp.os.linux.configuration
Subject: Re: setsid avec des variables d'environnement
Date: Tue, 1 Feb 2022 15:28:34 +0100
Organization: Le serveur de jdd pour fr*
Message-ID: <stbg2i$dja$1@ns507557.dodin.fr.nf>
References: <m2r18rzvld.fsf@macseb.seki.fr>
NNTP-Posting-Host: c3066ed76bae8bcc0e476efb157ff758
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 1 Feb 2022 14:28:35 -0000 (UTC)
Injection-Info: ns507557.dodin.fr.nf; posting-host="plouf.fr.eu.org:213.41.155.166";
	logging-data="13930"; mail-complaints-to="abuse"
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:91.0) Gecko/20100101
 Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <m2r18rzvld.fsf@macseb.seki.fr>
Bytes: 1600
Lines: 12

Le 28/01/2022 à 17:14, Sébastien Kirche a écrit :
> 
> démarrage: eval "/usr/bin/setsid $cmd >> pgm.log 2>&1 &
(...)
> Mon souci c'est que $cmd provient d'un fichier et pour un certain usage
> on a défini cmd="LD_LIBRARY_PATH=/some/path /some/command" ce qui se
> solde par LD_LIBRARY_PATH=/some/path: No such file or directory.

Dans ton cas $cmd est une commande du shell alors que setsid attend un 
programme. Il faut donc passer en argument un shell qui va prendre la 
commande en argument. Du genre

setsid /bin/sh -c $cmd