you can use system() to execute shutdown program. or grab the source for shutdown and look into it.
for powerdown (no just reboot) you must have a support in kernel.
bubo
Thanks bubak, that should work fine. I have to get used to the open source world where I can look at the source of any program to find out how it works. CaKiwi
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.