Ethereal-users: RE: [Ethereal-users] Run tethereal on background mode

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Jason Isaac" <JasonIsaac@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 27 Aug 2004 10:28:34 -0700

We have a script that is run via cron when we want to keep an eye on one of our remote sites.  It could be adapted for whatever your needs are.

 

Here it is:

####

if [ "$#" -eq "1" ]

then

NETWORK=$1

else

exit 1

echo "No Network Specified" | mail -s "Sniff_stats.sh: No Network Specified" \

     me@xxxxxxxxxxxx

fi

 

DATE=`date +%m%d%y_%H%M`

 

ping -c 120 ${NETWORK}.252 > /root/${NETWORK}_ping_${DATE} 2>&1 &

 

/usr/sbin/tethereal -a duration:120 -f "net ${NETWORK}.0 mask 255.255.255.0" -ieth0 -s 68 -F libpcap -w /root/${NETWORK}_capture_${DATE}

 

sleep 5

grep "rtt min" /root/${NETWORK}_ping_${DATE} >> /root/${NETWORK}_ping_sum.txt

 

####

 

Here is my crontab entry:

*/5 7-17 * * * /usr/local/bin/sniff_stats.sh 10.102.44  >/dev/null  2>&1

 

The argument to the script (10.102.44) is the network I am interested in.

 

Jason

 

 


From: ethereal-users-bounces@xxxxxxxxxxxx [mailto:ethereal-users-bounces@xxxxxxxxxxxx] On Behalf Of Carlos Medina
Sent: Friday, August 27, 2004 9:26 AM
To: Ethereal user support
Subject: [Ethereal-users] Run tethereal on background mode

 

 

Hi, i want to know how to run tethereal on background mode, i mean a command to run tethereal on the background and leave the console bash free to do anything else.

Thanks for your help

Carlos Andres Medina


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!