A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

March 18, 2010

Want to send an email when a port is used

Forums: 

Hi everyone,

Unusual request that Google hasn't been able to help with.

I have VMWare running on my Debian box that has XP-Pro as a guest OS. The guest OS will only be connected to through normal Windows remote desktop.

I want to fire myself an email when the RDC client connects (and ideally disconnects), so I was hoping to setup a monitor in Debian that can fire me a mail through mutt or something that mails me when the 3389 port is accessed.

Is this possible or am I looking at it the wrong way?

TIA

Joe

Click Here!