shut down and power off
John Love-Jensen
eljay@adobe.com
Fri Apr 26 13:37:00 GMT 2002
Hi Jaubing,
Try this...
system("shutdown -g 0");
...that should work if you have admin privs.
Or...
system("sudo shutdown -g 0");
...if you have sudo in place.
Unless you are using some sort of lame OS on your PC.
--Eljay
----------
From: "Jaubing Lin" <linjaubing@mail.com>
Date: Fri, 26 Apr 2002 13:47:44 -0500
To: gcc-help@gcc.gnu.org
Subject: shut down and power off
Hi!
Does anyone know where to find the information or how
to write some C/C++ code to "shut down" then turn the
PC's power off?
Thanks!
More information about the Gcc-help
mailing list