Shutdown function or shell command

Forum thread started by fortheloveofhaiku on Sun, 2010-12-12 00:54

Hey All, does any one know if there is a C++ function or a command i can call from the shell that can shutdown/restart haiku or would i have to create a separate function in my application?

Thanks guys :-)

Comments

Re: Shutdown function or shell command

There was a topic that was talking about this and other things a month or so ago.

http://www.haiku-os.org/community/forum/why_cant_i_make_desktop_shutdown...

Re: Shutdown function or shell command

use:
shutdown

to turn off the computer. or

shutdown -r

to restart the computer