Deutsch   English   Français   Italiano  
<st71de$2jf$7@shakotay.alphanet.ch>

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

Path: ...!3.eu.feeder.erje.net!feeder.erje.net!news.alphanet.ch!alphanet.ch!.POSTED.78.203.100.17!not-for-mail
From: Jo Engo <yl@icite.fr>
Newsgroups: fr.comp.os.linux.configuration
Subject: Re: setsid avec des variables d'environnement
Date: Sun, 30 Jan 2022 21:53:50 -0000 (UTC)
Organization: Posted through ALPHANET
Sender: ayl@78.203.100.17
Message-ID: <st71de$2jf$7@shakotay.alphanet.ch>
References: <m2r18rzvld.fsf@macseb.seki.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 30 Jan 2022 21:53:50 -0000 (UTC)
Injection-Info: shakotay.alphanet.ch; posting-host="78.203.100.17";
	logging-data="2671"; mail-complaints-to="usenet@alphanet.ch"
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Bytes: 1687
Lines: 24

Le Fri, 28 Jan 2022 17:14:06 +0100, Sébastien Kirche a écrit :

> cmd="LD_LIBRARY_PATH=/some/path /some/command"

Je voudrais bien t'aider, mais j'ai un problème en amont :

$ toto="titi" /usr/bin/printf \"%s\" $toto
""
Je devrais avoir "titi" en sortie, non ?
Nonobstant, si je fais setsid !! j'ai une erreur comme toi mais c'est 
toto=titi qu'il prend pour le (path d')un script ou (d')une commande et il 
broute évidemment. Ce que je ferai à ta place c'est que je mettrais ta 
commande dans un script

readline (...)
echo $ligne > /tmp/script
chmod u+x /tmp/script (selon l'humeur de ton admin tu peux ne pas avoir le 
droit, changer de lieu, donc)
setsid /tmp/script
....

-- 
C'est nous qui faisons des femmes ce qu'elles valent et voila pourquoi
elles ne valent rien. 
	-+- Gabriel Honoré Riquetti, Compte de Mirabeau (1749-1791) -+-