Dumb question - how to fork in a shell script
Deepak Saxena
deepak@csociety.purdue.edu
Mon, 6 Nov 2000 13:40:44 -0700
nohup command &
nohup basically dettaches the proccess from a controlling TTY so it
can keep running. Make sure that you redirect stderr and stdout from
the program to a file or /dev/null.
~ Deepak
On Nov 06 2000, at 01:46, Shawn T. Rutledge was caught saying:
> If a program calls a shell script, how can the shell script execute another
> shell script in the background, in such a way that the second script will
> keep executing after the first one exits? I tried just appending an
> ampersand, but it seems like the second script is being killed as soon
> as the first one exits. I thought maybe exec does this, but the bash
> man page says that "exec command" causes the command to replace the
> shell as the current process, rather than to start a new process. I
> need it to actually fork instead.
>
> The context is that I'm trying to get vgetty to convert the .rmd files
> (some weird sound format) into .wav files as it receives them, but that
> causes vgetty to block until this conversion process is done, and it
> can't answer the phone again until it's done. The conversion should be
> a background process.
>
> --
> _______ Shawn T. Rutledge / KB7PWD ecloud@bigfoot.com
> (_ | |_) http://www.bigfoot.com/~ecloud kb7pwd@kb7pwd.ampr.org
> __) | | \________________________________________________________________
> Free long distance at http://www.bigredwire.com/me/RefTrack?id=USA063420
>
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>
> Plug-discuss mailing list - Plug-discuss@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--
Deepak Saxena | Talk a lot about this Jesus
deepak@csociety.purdue.edu | A man of love, a man of strength
| But what a man did 2000 years ago
| Means nothing at all to me today