Date: Thu, 04 Jun 2009 09:06:15 -0500 From: Martin McCormick <martin@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org Subject: Can a Bourn Shell Script put itself in the background? Message-ID: <200906041406.n54E6Fts006668@dc.cis.okstate.edu>
next in thread | raw e-mail | index | archive | help
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 starting? Right now, I remind my coworkers to append the & after the script name. the bg command expects a job number, not a process ID. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906041406.n54E6Fts006668>