Hi,

try using screen :

http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to/

I think it's the best way of doing this.

Regards,

Matthieu NICAISE
Responsable technique

GSM : 06 72 19 09 55
[email protected]
------------------------------------------------------------------------
Thinkro System
http://www.thinkrosystem.com/




Le 2 mai 10 à 15:52, Dan Journo a écrit :

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 <[email protected]>
Sent: 02 May 2010 14:04
To: Asterisk Users Mailing List - Non-Commercial Discussion <[email protected] >
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

--
_____________________________________________________________________
-- 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

-- 
_____________________________________________________________________
-- 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

Reply via email to