List Info

Thread: shell question...




shell question...
user name
2006-01-31 16:04:49
In article <20060131154204.GA8318moray.salmi.ch>,
Jukka Salmi  <j+nbsd2006.salmi.ch> wrote:
>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

csh prints, ksh and sh don't.

christos

[1]

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