[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to suppress "Terminated..." message after kill
From: |
Bob Proulx |
Subject: |
Re: How to suppress "Terminated..." message after kill |
Date: |
Wed, 20 Sep 2006 10:42:07 -0600 |
User-agent: |
Mutt/1.5.9i |
Com MN PG P E B Consultant 3 wrote:
> .... (PID) Terminated tail -f file >outfile
> Is there a way to suppress this message? (bash 2.05b)
Use:
set +m
Or:
set +o monitor
-m Monitor mode. Job control is enabled. This option is
on by default for interactive shells on systems that
support it (see JOB CONTROL above). Background pro-
cesses run in a separate process group and a line con-
taining their exit status is printed upon their comple-
tion.
Why is monitor set for your script? That would only be typical for
interactive shells but not typical for scripts. Figure out why
monitor mode is enabled for your script and you will have the answer
to both this problem and others that you have not noticed yet.
Bob