erlug
[Top] [All Lists]

Re:[ERlug]shell troppo verbosa [era] kill troppo verboso?

To: Erlug <Erlug@xxxxxxxxxxxxxx>
Subject: Re:[ERlug]shell troppo verbosa [era] kill troppo verboso?
From: Mangus <ml@xxxxxxxxxxxxx>
Date: Tue, 6 Sep 2005 01:09:06 +0200
Alle 18:11, lunedì 5 settembre 2005, Nando Santagata ha scritto:
> On Mon, Sep 05, 2005 at 05:14:07PM +0200, Federico Manganelli wrote:
> > >(sleep 100& kill %1) >/dev/null 2>&1
> >
> > ok , se faccio
> > (kill -9 $wgetpid)  > /dev/null 2>&1
> > continua a mostrarmelo perchè il comando wget viene eseguito in un altra
> > shell e il kill in una subshell , giusto?
>
> Giusto, dovresti avere sia il comando che il suo kill nella stessa
> subshell.
Ah che PITA. 
Sono sempre più perplesso e basito.

> In alternativa richiama il tuo script da un altro: se il tuo script si
> chiama script1.sh, chiamalo da uno script2.sh fatto cosi`:
>
> #!/bin/sh
>
> ./script1.sh >/dev/null 2>&1

naaahh

> Fa schifo, ma al momento non mi viene in mente un metodo migliore e non
> ho voglia di spulciare tutte le opzioni di bash :-)

ti capisco
mah, ora vedo di riuscire a maneggiare 'ste subshell in qualche maniera
comunque 
<rant> che palle</rant>

-- 
Fede

... Logically incoherent, semantically incomprehensible, and legally ... 
impeccable!
 

Attachment: pgpaVgwlzV1pP.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>