Can a Bourn Shell Script put itself in the background?

Martin McCormick martin at
Thu Jun 4 14:06:23 UTC 2009

I tried 

bg $$

but $$ is the current process invoked just as $! is the process
of a backgrounded process started by that shell.

	So, can I make a shell script background itself after

Right now, I remind my coworkers to append the & after the
script name. the bg command expects a job number, not a process

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group

More information about the freebsd-questions mailing list