From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,2106d980e7611fd9 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-10 02:56:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: wmleong@excite.com (WM) Newsgroups: comp.unix.tru64 Subject: Re: How to redirect 'killed' output Date: 10 Apr 2002 02:56:16 -0700 Organization: http://groups.google.com/ Message-ID: <9d83c384.0204100156.248a5fc8@posting.google.com> References: <9d83c384.0204090433.4dc6ede0@posting.google.com> NNTP-Posting-Host: 202.75.160.182 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1018432576 17814 127.0.0.1 (10 Apr 2002 09:56:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 10 Apr 2002 09:56:16 GMT Xref: archiver1.google.com comp.unix.tru64:7244 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...