[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to suppress "Terminated..." message after kill

From: Chet Ramey
Subject: Re: How to suppress "Terminated..." message after kill
Date: Fri, 22 Sep 2006 10:52:37 -0400
User-agent: Thunderbird (Macintosh/20060719)

Com MN PG P E B Consultant 3 wrote:

> monitest.sh: line 9:  3486 Terminated    tail -f foo >bar
> finish
>>From this we can see:
> (1) Monitor was not set
> (2) Even if it had been set, +m would have turned it off
> (3) Still, the Terminated message is printed.
> Strange, isn't it?

Not really.  If a pipeline in a shell script is killed by a
signal other than SIGINT or SIGPIPE, the shell reports it.  People
generally want to know when their processes are killed.  It's
independent of job control.

If you want to suppress the message, redirect stderr to /dev/null.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]