script to check if a drive is mounted
I'm looking for a simple c script that will check if a drive called backup is mounted if its not do nothing and if it is send an email and dismount it. The sending email bit is easy I will using net::smtp but the rest??
|