Detecting System Restart or Shutdown?

waqar afridi afridi.waqar at gmail.com
Wed Apr 13 10:41:10 UTC 2011


Hello Dear List

Is there any method through which I can Detect that the System was recently
shutdown or Restarted?

*Explanation:*

I am making a utility that will Store some Files on HardDisk. I want the
utility to Detect if the System
is newly Booted. If it is, It should delete those Files and Create fresh
Once.

Thanx in Advance

-- 
*Waqar Afridi*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110413/f1013006/attachment.html>


More information about the ubuntu-users mailing list