Search This Blog

Showing posts with label organise. Show all posts
Showing posts with label organise. Show all posts

C Program to Schedule a Shutdown - How to Schedule Shutdown in C

You can schedule shutdown in Windows or Linux using C program. We will see how to schedule a shutdown using a c program. To schedule a shutdown in Windows, we execute the Windows command shutdown /s /t sec (where sec is time delay before shutdown in seconds). In Linux, we execute the command shutdown -h +600.  The c programs to schedule a shutdown in Windows and Linux are given separately.