![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ping command | aladdin | UNIX for Dummies Questions & Answers | 3 | 12-05-2006 03:54 PM |
| UNable to find ping command | swepaul | UNIX for Dummies Questions & Answers | 3 | 05-30-2005 03:17 AM |
| -c option in ping command | Deepa | Shell Programming and Scripting | 3 | 05-31-2002 07:05 AM |
| how to use PING command efficiently | hoang | IP Networking | 1 | 04-16-2002 06:04 AM |
| About ping command | Papa Deoo | UNIX for Dummies Questions & Answers | 1 | 09-19-2001 04:20 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi!
I have small problem. I want to ping a server and the result shouldn't be printed in the browser window, just become a value. Here you can see the script that I have: $command="ping linux.com -t ttl -c1 | tail -1 | awk '{print $4 \" \" $5}'"; $output = system($command); system("exit(0)"); echo "DATA: $output"; ?> When I run this in my browser the resualt will be as follow: 33.1/33.1/33.1 ms DATA: 33.1/33.1/33.1 ms The echo value is just a test for me to see if the $output value is OK. What I want is that the value before DATA: 33.1/33.1/33.1 ms shouldn't be viewed in the browser just DATA: 33.1/33.1/33.1 ms Could someone please help me with this problem? Best Regards Peter Håkansson |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|