Subject: Re: shell question...
To: None <netbsd-help@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: netbsd-help
Date: 02/02/2006 10:57:35
John Darrow --> netbsd-help (2006-02-01 19:47:41 -0600):
> Try the following, produces no shell job output for me under 3.0 /bin/sh
> and /bin/ksh:
> 
> mypid=$(sleep 30 >/dev/null 2>&1 & echo $!)
> [...]
> kill $mypid

Interesting! But this doesn't seem to work if you don't redirect stdout:
the shell waits for the command to return. Unfortunately, the process
I'd like to run in the background needs to write to stdout...


Regards, Jukka

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