List Info

Thread: shell question...




shell question...
user name
2006-01-31 15:42:04
Hello,

after starting a process in the background

	$ sleep 30 >/dev/null 2>&1 &

and killing it

	$ kill $! >/dev/null 2>&1

the following is printed to the terminal:

	[1]   Terminated              sleep 30 >/dev/null
2>&1

even though I redirected standard output and error to
/dev/null... I
tried this with both /bin/sh and /bin/ksh on -current and
2.1_STABLE
NetBSD systems. The Korn shell even prints the pid when
starting the
command in the background, e.g.

	[1] 6980

I guess it's the shell who prints these strings, isn't it?
If yes, is
there a way to suppress this output?


TIA, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )