@SB

still not working.......I am runnning dat code on netbeans IDE in fedora
 ....'*0' was to show time after which system will shutdown*



import java.io.IOException;


public class Main  {


    public static void main(String[] args)throws IOException {
        Runtime runtime=Runtime.getRuntime();
        Process proc=runtime.exec("/sbin/shutdown -h");
        System.exit(0);

    }

}

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to