Re: asynchronous shell scripts in "run"
Brian Reichert <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Dec 08, 2004 at 04:22:44PM -0700, Pat Brouillette wrote: > stupid question. > my run script looks like > > #!/bin/sh > exec setuidgid <user> ./launchclientappscript & > exec 2>&1 > exec setuidgid <user> ServerApp > > But the clientappscript kills all of its processes > after it finishes executing. That's because you used 'exec' on that line. Consider this instead: #!/bin/sh setuidgid <user> ./launchclientappscript & exec 2>&1 exec setuidgid <user> ServerApp > > please don't make fun of me... B^) > what am I doing wrong? -- Brian Reichert <[email protected]> 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large