Exit Photon and shutdown qnx 4 from C code

Hi.

Is there a way to exit Photon and shutdown QNX 4 from C code.

We have a request for a system that will have no mouse, no keyboard and no
display.

The software needs to shutdown the system in response to an event.

Thanks

Augie

system(“shutdown”);

Markus


“Augie Henriques” <augiehenriques@hotmail.com> wrote in message
news:8vh06l$8p2$1@inn.qnx.com

Hi.

Is there a way to exit Photon and shutdown QNX 4 from C code.

We have a request for a system that will have no mouse, no keyboard and no
display.

The software needs to shutdown the system in response to an event.

Thanks

Augie

And this will exit Photon? Will there be any problems with open files from
pdm, etc…?

Markus Loffler <loffler@ces.clemson.edu> wrote in message
news:8vh34q$bhs$1@inn.qnx.com

system(“shutdown”);

Markus


“Augie Henriques” <> augiehenriques@hotmail.com> > wrote in message
news:8vh06l$8p2$> 1@inn.qnx.com> …
Hi.

Is there a way to exit Photon and shutdown QNX 4 from C code.

We have a request for a system that will have no mouse, no keyboard and
no
display.

The software needs to shutdown the system in response to an event.

Thanks

Augie
\

I’ve done it that way with no problems. To test simply open a pterm window and type shutdown.
Don’t use shutdown -f as it is fast and some files may not get closed (i.e. samba)
-Paul

Augie Henriques <augiehenriques@hotmail.com> wrote in message news:8vhb2i$itd$1@inn.qnx.com

And this will exit Photon? Will there be any problems with open files from
pdm, etc…?

Markus Loffler <> loffler@ces.clemson.edu> > wrote in message
news:8vh34q$bhs$> 1@inn.qnx.com> …
system(“shutdown”);

Markus


“Augie Henriques” <> augiehenriques@hotmail.com> > wrote in message
news:8vh06l$8p2$> 1@inn.qnx.com> …
Hi.

Is there a way to exit Photon and shutdown QNX 4 from C code.

We have a request for a system that will have no mouse, no keyboard and
no
display.

The software needs to shutdown the system in response to an event.

Thanks

Augie


\

if you want to be certain…how about:

system (“slay photon”);
sleep(number_of_seconds_to_wait);
system (“shutdown”);

AFAIK this should be fine.

Augie Henriques <augiehenriques@hotmail.com> wrote:

And this will exit Photon? Will there be any problems with open files from
pdm, etc…?

Markus Loffler <> loffler@ces.clemson.edu> > wrote in message
news:8vh34q$bhs$> 1@inn.qnx.com> …
system(“shutdown”);

Markus


“Augie Henriques” <> augiehenriques@hotmail.com> > wrote in message
news:8vh06l$8p2$> 1@inn.qnx.com> …
Hi.

Is there a way to exit Photon and shutdown QNX 4 from C code.

We have a request for a system that will have no mouse, no keyboard and
no
display.

The software needs to shutdown the system in response to an event.

Thanks

Augie
\