467,104 Members | 967 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,104 developers. It's quick & easy.

send ping and log result to file


I want to have a php script which pings a host with ping -t all the
time and it shoukld write these things to a logfile.
When it comes like "timout exceeded" it should write this only once to a
file. Because if timout is 2000 times I don't want to have timeout exceeded
200 times in a database.
But when ping times are coming they should be logged in a file with date and
time when the ping accured.

Is this possible? - if yes, how?

Jul 17 '05 #1
  • viewed: 3234
1 Reply
georgios zakitraxis wrote:
Is this possible? - if yes, how?

Some things are better handled by the system. Just run the job on the
background, e.g.:

$ ping -t > /ping.log &

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Egil Hansen | last post: by
21 posts views Thread by Neel | last post: by
2 posts views Thread by Ryan | last post: by
12 posts views Thread by Matt F | last post: by
3 posts views Thread by imughal | last post: by
2 posts views Thread by airwot4 | last post: by
4 posts views Thread by Eran.Yasso@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.