Subject: | |
From: | |
Reply To: | |
Date: | Thu, 27 Apr 1995 21:12:42 GMT |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
john brainard ([log in to unmask]) wrote:
: Hello everyone,
: I have a program that uses the setsid() routine or the nohup command on HPUX,
: but when I ported the program to the MPE, I discovered those routines would
: not work.
: Currently when the program is run, it needs a dedicated terminal, and I need
: to stop that. I need to start the program in the background, but I am not
: sure how to do it. I have considered starting it via the stream command, but
: I wanted to stay in the posix shell (performance would suffer too).
A job stream is still a good way to do this. In the job, simply invoke the
shell and then invoke your program/script. If the shell's not required,
then simply run your program without the shell if possible since it'll use
fewer system resources that way.
: I tried starting it with the '&' and ignoring the SIG_HUP signal, but that
: didn't work.
What does this mean, "that didn't work"? The shell supports the & operator,
but it doesn't have job control features available for managing the program
and you need to do your own redirections of stdin/stdout...
If you're already in a job stream, the & is not necessary.
: Any other ideas? Oh, I am using x.50.50.
Perhaps you could give more detail on what didn't work from the shell.
Steve
|
|
|