LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2005, 09:44 AM   #1
korbind
LQ Newbie
 
Registered: Mar 2005
Location: Cincinnati, Ohio
Distribution: Vector Linux 4.3 (Slackware one-off)
Posts: 12

Rep: Reputation: 0
Need program monitor for SMTP/internet activity


Hey all,

I'm looking for a very simple program to monitor the status of sendmail and/or my internet/network connection.

The deal is sometimes I'm on dialup at home, sometimes I'm on wifi or ethernet at school, and I want to know when larger emails have been completely sent out and I can log my computer off the network.

I'm using Vector Linux (basically Slackware) with Fluxbox (window manager) and want a very basic/fast program along the lines of an applet. I'm fine (or would even prefer) something I can use at the terminal, as long as it updates the information automatically.

Perhaps there's something already in my system that would already do the trick, but I don't know what it would be. I've looked through SourceForge and can't find something simple that doesn't run off of either KDE of Gnome.

Any ideas?
 
Old 04-09-2005, 09:49 AM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
e.g. small shell script:

mailq | grep 'Mail queue is empty' && echo "Your mail queue is sent ...."
 
Old 04-09-2005, 09:57 AM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If I understand right you just need a listing of the mail queue - try running:
sendmail -bp
 
Old 04-09-2005, 09:59 AM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
try here:
http://www.bensinclair.com/dockapp/s...3?type=Network
 
Old 04-11-2005, 08:44 AM   #5
korbind
LQ Newbie
 
Registered: Mar 2005
Location: Cincinnati, Ohio
Distribution: Vector Linux 4.3 (Slackware one-off)
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for all the responses.

The command "sendmail -bp" shows exactly what I want. Is there some way to have it automatically update its contents? (Sorry if that's a simple request, but my scripting abilities are still very crude).

The wm applets are very much what I'm looking for. I'm still trying to find one, though, that monitors my *outgoing* SMTP.

I still don't understand the "mailq | grep..." script. Do I need to run it periodically to see if my mail has been sent, or do I run it once and it spits back "Your mail queue is sent..." once Sendmail is done with the outgoing messages.

btw, I also discovered iptraf which shows a lot of network information with an interactive menu at the terminal.

Again, thanks for all the help!
 
Old 04-11-2005, 12:17 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You could set up a quick alias (qc=queue check):
qc="while [ 1 ];do clear;sendmail -bp;sleep 5;done"

Then just run qc to check the queue - ctrl+c should break out.
 
Old 04-16-2005, 04:52 PM   #7
korbind
LQ Newbie
 
Registered: Mar 2005
Location: Cincinnati, Ohio
Distribution: Vector Linux 4.3 (Slackware one-off)
Posts: 12

Original Poster
Rep: Reputation: 0
That does the trick - thanks for the help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux system activity Monitor shiraz_1981 Linux - Software 1 10-10-2005 12:18 PM
Need program to monitor SMTP load korbind Slackware 3 04-11-2005 08:32 AM
which log gives me info about internet activity? dr_zayus69 Linux - Newbie 7 12-03-2004 05:14 PM
What do you use to monitor server activity? Wonderer Slackware 8 11-02-2003 11:33 AM
Encrypting internet activity Ultrakapy Linux - Security 2 08-01-2003 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration