procmail
[Top] [All Lists]

running commands from procmail

1998-08-16 08:13:14
As we've been working on getting procmail working over the last couple 
weeks, we keep coming up with new ideas.  If anybody has an recipes for any 
of this, I'd love to get a copy.

ping-by-mail - this is where things started
I'd think we could have a rule that would allow a line in a message cause a 
remote host to be pinged and have the response e-mailed back.  We already 
have a number of processes that monitor remote sites and send pages if they 
fail.  All of the techs at D&E CNS have PCS phones which allow us to send an 
SMTP message from the road.  If I get a page, I'd like to be able to do a 
little research while driving.

traceroute-by-mail
Quite similar to the above.  I'd think we should be able to strip out 
duplicate blanks and even chop the response up into 160 chr chunks (max in a 
single SMS message).

who-by-mail
We have our hosts.allow file set up to send a page every time somebody 
telnets into our linux host.  Basically, nobody should be on it most of the 
time.  If I get a page that somebody logged in, it would be nice to get an 
e-mail response back with the response from a who.

shutdown-by-mail

anycommand-by-mail
This gets a little dangerous but, today I spent 3 hours on the road....who 
knows what I may want to do remotely someday!

---Jerry Shenk, Master CNE -
D&E Computer Networking Services, formerly Com Tech Technical Services 
(717) 569-5800, http://www.dect.com/jas
Snail Mail: 248 Granite Run Drive * Lancaster, PA 17601
Internet E=mail: jas(_at_)dect(_dot_)com | MHS via INFINITE: JAS @ TECHSVCS
FAX: (717) 560-1682


<Prev in Thread] Current Thread [Next in Thread>