HP3000-L Archives

April 1995, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steve Elmer <[log in to unmask]>
Reply To:
Steve Elmer <[log in to unmask]>
Date:
Thu, 27 Apr 1995 21:12:42 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
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

ATOM RSS1 RSS2