[asterisk-users] Calls Dropping
Dan Journo
dan at keshercommunications.com
Sun May 2 08:52:00 CDT 2010
Hi Bob,
Thanks for that. Is there any way I can make the task run in the background and free up the console? Also so that I can disconnect my ssh session without losing the task.
Thanks
Dan
Sent from my Windows Mobile® phone.
-----Original Message-----
From: Bob Smither <Smither at C-C-I.com>
Sent: 02 May 2010 14:04
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>
Subject: Re: [asterisk-users] Calls Dropping
On Sun, 2010-05-02 at 08:34 -0400, Dan Journo wrote:
<snip>
> How can i log a continuous ping test to a file and include the date
> and time of each ping?
Try this:
#!/bin/sh
for (( ; ; ))
do
NOW=$(date +"%T %m/%d/%Y")
PING=$(ping -qc 1 example.com)
echo $NOW: $PING >> pinger.log
done
exit 0
You can then monitor the log file using:
$ tail -f pinger.log
You will need to use ^C to kill the script.
Hope this helps.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list