* How to redirect 'killed' output
@ 2002-04-09 12:33 WM
2002-04-10 9:56 ` WM
0 siblings, 1 reply; 2+ messages in thread
From: WM @ 2002-04-09 12:33 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to redirect 'killed' output
2002-04-09 12:33 How to redirect 'killed' output WM
@ 2002-04-10 9:56 ` WM
0 siblings, 0 replies; 2+ messages in thread
From: WM @ 2002-04-10 9:56 UTC (permalink / raw)
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...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-10 9:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-09 12:33 How to redirect 'killed' output WM
2002-04-10 9:56 ` WM
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox