C Program to Shutdown Linux OS
C Program to Shutdown Linux OS In this program : You need to be logged in as user for above program to execute otherwise you will get the message shutdown: “Need to be root”. ‘-P’ option specifies you want to power off your machine. You can specify minutes as: shutdown -P “number of minutes” Let see the below program #include<stdio.h> #include<stdlib.h> … Read more