Richard Hector wrote: > $$ is the pid of the current shell. > > $! is the pid of the most recent background process, so you could do: > > amuled & echo $! > amuled.pid > ... > kill `cat amuled.pid`
Since presumabely amuled forks itself into the background then putting it into the background at launch won't leave the right pid in $!. That will be the pid of the shell but not the pid of the backgrounded amuled. Bob
signature.asc
Description: Digital signature