REQ: program to e-mail me if low disk space on a machine

C

Chaos Master

Hello.

I have set a "download machine" for pictures/audio/video using P2P
programs and IRC channels.

With downloads made via IRC (using (OT!) mIRC), if there isn't enough
disk space, unpredictable results will happen.

So: I'm looking for a program to e-mail me if the hard disk space is
getting lower than, say, 20MB.

Do you know of any?

[]s
--
Chaos Master®, posting from Canoas, Rio Grande do Sul, Brazil - 29.55° S
/ 51.11° W / GMT-2h / 15m .

"People told me I can't dress like a fairy.
I say, I'm in a rock band and I can do what the hell I want!"
-- Amy Lee

(My e-mail address isn't read. Please reply to the group!)
 
Z

zebra

Sounds interesting... Where should it run? On your home computer? And
send email to you if disk quota is reached...
 
C

Chaos Master

This is zebra for forever:
Sounds interesting... Where should it run? On your home computer?

No, on a machine that is set to do only this, on my small LAN.
And then, I "pull" the files to my main PC.
And send email to you if disk quota is reached...

--
Chaos Master®, posting from Canoas, Rio Grande do Sul, Brazil - 29.55° S
/ 51.11° W / GMT-2h / 15m .

"People told me I can't dress like a fairy.
I say, I'm in a rock band and I can do what the hell I want!"
-- Amy Lee

(My e-mail address isn't read. Please reply to the group!)
 
?

=?ISO-8859-1?Q?=BBQ=AB?=

I have set a "download machine" for pictures/audio/video using P2P
programs and IRC channels.

With downloads made via IRC (using (OT!) mIRC), if there isn't
enough disk space, unpredictable results will happen.

So: I'm looking for a program to e-mail me if the hard disk space
is getting lower than, say, 20MB.

A don't know of an app that will do that for you.

If I had to do it (and I'm glad I don't ;) , I think I'd try to
write a cmd script that would check the free disk space and send
e-mail if it were too low, then run the script as a cron job every
couple of minutes.

I'd use bmail[1] to send the mails, and nncron[2] lite to call the
script. What's also needed is a command line tool to actually check
the amount of free disk space; you'd think such a thing would be
included with any OS, but AFAICT many Windows flavors come without
it. A little googling turns up T4eDirSize[3], which I guess would
work.

What's needed then is a way to parse the output of T4eDirSize and
pipe it into a conditional for sending the mail. That, I don't know
how to do, but maybe there's a cmd scripting guru around who could
help you.

[1] bmail
<http://www.beyondlogic.org/solutions/cmdlinemail/cmdlinemail.htm>

[2] nncron lite
<http://www.nncron.ru/>

[3] T4eDirSize
<http://www.tools4ever.com/products/free/command/>
 
M

Mike Duffy

<
If I had to do it (and I'm glad I don't ;) , I think I'd try to
write a cmd script that would check the free disk space and send
e-mail if it were too low, then run the script as a cron job every
couple of minutes.

I'd use

Alternatively, you could use VBS scripting files to do everything. There
are functions, methods, and other things with non-obvious names devised by
Microsoft that allow you to check free space, total space, and space used,
roll everything into an excel spreadsheet, and send the results via
Outlook.

You will still need to find a "cron" type program because MS task scheduler
has a granularity of 1 day.

Use the free MS downloads as references for how to use the VBS script
engine "cscript". However, I found the reference materials too abstract to
use as a primer. And the "tutorial" websites you may find on the web spoon
feed you too much and thus you're not forced to think sufficiently. For
beginners, I suggest that you download the CHS files from MS and then take
a look at the source code for the "I Love You" virus.

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top