Repost of problems starting photon app from script...

I seem to be getting different behavior depending on how I start my
application, either by launching a pterm then starting the app, or by
putting the following in a script (which is what I want to do, I want
the app to start automatically when the computer is turned on):

or pterm or pterm -G

The difference in behavior has to do with receiving signals - I send a
SIGUSR2 to all the processes in my app to force an orderly shutdown. If
I start the app manually from a pterm it works, if I launch the app from
a script several processes do not seem to receive the signal and cannot
be killed. pidin says they are reply blocked on io-net, which makes no
sense to me (only one of them interacts with the network). Anyway, what
I want to do is start the app from a script I have also tried:

pterm -l -G

This starts a shell but does not start the program. If I then manually
start the program everything works correctly(?!?). So how can I get the
above statement to start the program? It seems like that would solve my
problem. Or is there a way to tell the pterm (from a script)once it is
started to run a program?

On Thu, 21 Jun 2001 10:08:39 -0700, Bruce Davis
<bruce.r.davis@boeing.com> wrote:

I seem to be getting different behavior depending on how I start my
application, either by launching a pterm then starting the app, or by
putting the following in a script (which is what I want to do, I want
the app to start automatically when the computer is turned on):

name of program> or pterm or pterm -G <name of
program

The difference in behavior has to do with receiving signals - I send a
SIGUSR2 to all the processes in my app to force an orderly shutdown. If
I start the app manually from a pterm it works, if I launch the app from
a script several processes do not seem to receive the signal and cannot
be killed. pidin says they are reply blocked on io-net, which makes no
sense to me (only one of them interacts with the network). Anyway, what
I want to do is start the app from a script I have also tried:

pterm -l -G <name of program

This starts a shell but does not start the program. If I then manually
start the program everything works correctly(?!?). So how can I get the
above statement to start the program? It seems like that would solve my
problem. Or is there a way to tell the pterm (from a script)once it is
started to run a program?

With -l a login shell is started and the profiles are
executed. You could try to invoke your program from there (with or
without exec). How do you send the signal? Does the program need
pterm?

ako