Results 1 to 4 of 4
Hello, I am in the process of writing a small program which emulates a timer. I'm having real trouble working out how to set the timer and letting it run ...
- 01-25-2006 #1Just Joined!
- Join Date
- Jan 2006
- Location
- Oxford, England
- Posts
- 2
Linux Shutdown Source Code
Hello, I am in the process of writing a small program which emulates a timer. I'm having real trouble working out how to set the timer and letting it run for x number of seconds. When I use shutdown, I notice that the user is able to specify a time period before the computer is shutdown.
What I want to do is look at the source code for shutdown and see how they've done it. So the question is: Where can I find the source code for the Linux shutdown command?
- 01-25-2006 #2
Does this help at all? http://www.ae.iitm.ac.in/pipermail/i...er/013915.html After all Mandriva is also rpm based, so perhaps the approach is the same.
I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso
- 01-25-2006 #3Just Joined!
- Join Date
- Jan 2006
- Location
- Oxford, England
- Posts
- 2
Thanks
Hello,
I did what it said in the mailing list entry and succeeded in getting the source code for shutdown.
Thanks for the quick response.
- 01-25-2006 #4I aim to please - Happy coding!
Originally Posted by magic_ghost
I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso


Reply With Quote
