linux system program control "halt"


Forum: Apps
Topic: linux system program control "halt"
started by: mousemax

Posted by mousemax on Mar. 18 2005,14:56
i used code

if(buf[0] == sing)
{
printf("Program quit \n");
execl("/sbin/halt","-f","-p");
}

in fedora 2.0 , it run well
but DSL linux is not execution

i went my linux machine to be controled by program

i have no idea, any one tell me any other solve. please

Posted by cbagger01 on Mar. 18 2005,23:40
Try "sudo /sbin/halt" instead of "/sbin/halt"
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.