Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: linux system program control "halt"< Next Oldest | Next Newest >
mousemax Offline





Group: Members
Posts: 1
Joined: Mar. 2005
Posted: Mar. 18 2005,14:56 QUOTE

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
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Mar. 18 2005,23:40 QUOTE

Try "sudo /sbin/halt" instead of "/sbin/halt"
Back to top
Profile PM 
1 replies since Mar. 18 2005,14:56 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: linux system program control "halt"

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code