Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: wmleong@excite.com (WM)
Subject: Re: How to redirect 'killed' output
Date: 10 Apr 2002 02:56:16 -0700	[thread overview]
Message-ID: <9d83c384.0204100156.248a5fc8@posting.google.com> (raw)
In-Reply-To: 9d83c384.0204090433.4dc6ede0@posting.google.com

wmleong@excite.com (WM) wrote in message news:<9d83c384.0204090433.4dc6ede0@posting.google.com>...
> I have a script (eg. abc.sh) calling kill -9 to kill another process
> running in the background. I am getting "abc.sh: 211706 Killed"
> returned to my session. How do i redirect this message so it doesn't
> show on my session? I have tried > /dev/null, it doesn't work. Please
> help. Thanks

hi,
i have found the solution to my previous question. Here is how i did
it..

#!/usr/bin/sh
...
...
kill  $pid > /dev/null 2>&1
...

It works fine to redirect to /dev/null, no more message output is
visible anywhere. But when i try to redirect to a flat file, it
doesn't work...


      reply	other threads:[~2002-04-10  9:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-09 12:33 How to redirect 'killed' output WM
2002-04-10  9:56 ` WM [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox