Shutting down system from Photon terminal window

Hi

I have an application running in a terminal on Photon (QNX 6.2). I would
like to shutdown the system in response to an event. I tried doing the
system(“shutdown”) call. But that doesn’t seem to be working. Is there
another system call or something that gracefully shuts the system down?
BTW that system(“shutdown”) call works if you don’t boot into photon and
run the app without the GUI.


Thanks in anticipation,
Santosh

Are you running as root?

“Santosh Patil” <sansjunk@hotmail.com> wrote in message
news:3DD16E08.953F63E5@hotmail.com

Hi

I have an application running in a terminal on Photon (QNX 6.2). I would
like to shutdown the system in response to an event. I tried doing the
system(“shutdown”) call. But that doesn’t seem to be working. Is there
another system call or something that gracefully shuts the system down?
BTW that system(“shutdown”) call works if you don’t boot into photon and
run the app without the GUI.


Thanks in anticipation,
Santosh

I’m not running as root, but I have the application set to root privileges, so
I think its capable of doing things like shutting down.

“Bill Caroselli (Q-TPS)” wrote:

Are you running as root?

“Santosh Patil” <> sansjunk@hotmail.com> > wrote in message
news:> 3DD16E08.953F63E5@hotmail.com> …
Hi

I have an application running in a terminal on Photon (QNX 6.2). I would
like to shutdown the system in response to an event. I tried doing the
system(“shutdown”) call. But that doesn’t seem to be working. Is there
another system call or something that gracefully shuts the system down?
BTW that system(“shutdown”) call works if you don’t boot into photon and
run the app without the GUI.


Thanks in anticipation,
Santosh

I think you are right.

I wonder if the program is killing itself before it gets a chance to kill
most of the system. I don’t know how you would check that. Does anything
noticibly die?


“Santosh Patil” <sansjunk@hotmail.com> wrote in message
news:3DD24401.FBDED230@hotmail.com

I’m not running as root, but I have the application set to root
privileges, so
I think its capable of doing things like shutting down.

“Bill Caroselli (Q-TPS)” wrote:

Are you running as root?

“Santosh Patil” <> sansjunk@hotmail.com> > wrote in message
news:> 3DD16E08.953F63E5@hotmail.com> …
Hi

I have an application running in a terminal on Photon (QNX 6.2). I
would
like to shutdown the system in response to an event. I tried doing the
system(“shutdown”) call. But that doesn’t seem to be working. Is there
another system call or something that gracefully shuts the system
down?
BTW that system(“shutdown”) call works if you don’t boot into photon
and
run the app without the GUI.