Programming :: Ping Command Not Working In Tcl/tk?

Feb 16, 2010

I can't get exec ping to work on my system. wish is located in /usr/bin/wish8.4

Code:
#!/usr/bin/wish8.4
text .txt
set in [open "/root/hosts.txt" r]
while {[gets $in line] != -1} {

[Code]....

View 2 Replies


ADVERTISEMENT

Networking :: Cannot Ping With Command - Ping IP - Address But Can Ping With - Ping IP -I Eth0

Jul 15, 2011

I am using an virtual machine. where I need to ping from one machine to another. earlier I was able to ping. But after going to google.com once, I cannot ping back to this machine.

But if I gave ping -I eth1 <IP> then I can ping.

I cannot install any package, so tell me solution which includes not installing any package.

View 2 Replies View Related

Networking :: Host And Ping Command Not Working

Feb 28, 2010

I am working behind a http proxy (172.30.x.x:3128). I have configured it in my terminal. All the applications such as wget,lynx firefox etc. are working correctly.However all dns utilities like nslookup, host and even ping too are not working.Following is output of host command:

Code:
root@ding:~# host google.com
;; connection timed out; no servers could be reached
Output of host -T:

[Code]....

To connect to net I have to first run dhclient3(learnt from this forum!).It gives me my ip but where is dns address sent I don't have and idea.

View 14 Replies View Related

Debian Multimedia :: Use The "ping -a" Command For Getting An Audible Ping

Jul 8, 2011

I try to use the "ping -a" command for getting an audible ping. But there is just silence The command "beep" works fine, so everything should be ok with the speaker (in the konsole).

View 3 Replies View Related

Programming :: GDB (Control C) Command Not Working

May 12, 2011

I've just started using gdb at my new job, and I'm having a small issue debugging C++ with it. After I execute "continue" or "run" through gdb, I'm not able to return control to gdb. Based on the documentation I read, I should be able to use Control-C to interrupt the program, and have control return to gdb.

This does not work on my setup. Not sure if it's related, but I'm debugging on a remote machine. I tried through PuTTY and xterm using Exceed XServer. In both cases, gdb does not respond to Control-C. This is quite annoying because I have to restart my program every time I want to set a breakpoint.

View 2 Replies View Related

Programming :: Multiple Command In Ssh Not Working?

Apr 22, 2011

I have prepared a script which will login to each server and search for a keyword.
I want output on same machine from where m running script.

When i try to run command on any machine.. It works well.

w=$(grep -irH "keyword.com" /home/*/public_html/*);if [ $? -eq 0 ];then echo -e "
$HOSTNAME";echo $(grep -irH "keyword.com" /home/*/public_html/* | cut -d: -f1 | uniq | awk '{for (i=1;i<=NF;i++) printf "%s
",$i}');fi

[Code]....

View 9 Replies View Related

Programming :: Source Or Dot Command Not Working In Makefile

Apr 5, 2010

I am trying to run a script to setup environment variables and then run other commands in a make file. But the source or the dot operator (shell is bash) does not seem to take any effect as the subsequent command didn't pick the environment up. Do I have to put every lines of the environment setup in the first script into the makefile instead?

sample setenv.sh
#!/bin/sh
export MYDIR=/somedir

sample makefile:
all: source ./setenv.sh
echo $(MYDIR)

View 5 Replies View Related

Fedora Networking :: Ping Working But Internet Not Working From Dhcp Clients

Jul 17, 2009

I have a strange problem for internet. My clients (winxp - S2) can't get internet.Let me explain my scenerios. Fedora 10 with lan (eth0) having direct internet from dsl model, client (XP service pack 2) can use samba shares using dhcp (wlan0) installed in Fedora 10 box. client can ping my linux box.Now problem is: client (dosbox) can ping the google ip address (i.e ping 74.125.39.106) but can't use 'ping www.google.com'. That means ping with ip works for internet from my client. My linux box can. I can use internet from FC10 but can't use iexplorer from my client to have internet. I have enable ipmasquarding in Firewall and dhcpd is running on wlan0 for dynamic ip address of my clients.Can someone suggest me what kind of problem having I? What should i do to success iexplorer for internet? what possibly am i missing?

View 3 Replies View Related

Programming :: Ptrace System Command Not Working Properly In X86 Platform

Apr 20, 2011

basically in the child process iam just calling the ptrace(PTRACE_TRACEME, 0, NULL, NULL) system call but if add this stsyem call rest of the code not working properly. i found the reason basically what happening is when we have ptrace() system call its printing the same variable 3 times i.e its not executing it 3 times but just it is printing 3 times .iam just wondering how it could be possible.

View 1 Replies View Related

Networking :: Execute A Command (ping Or Telnet Or Ssh) On Ip 192.168.0.20

Nov 25, 2010

When I execute a command (ping or telnet or ssh) on ip 192.168.0.20 it is ok.

If I execute the same command on
ip 192.168.0.020, it looks for
ip 192.168.0.18 instead of
ip 192.168.0.20

And it's the same for others ip if I put a 0 ahead last byte.

View 6 Replies View Related

Ubuntu Networking :: DNS - Ping Command For Receiving Reply

Apr 8, 2010

If I type
Code:
$ ping [URL]
or even

Code:
$ ping google.com
should I receive a reply?

View 9 Replies View Related

Networking :: Routing Command - WinPC1 Can Ping WinPC2

Jan 7, 2011

I have 2 windows PC and a linux as router in the linux there are 2 NIC eth0 and eth1. I created DHCP on eth0 and manually configured on eth1. My eth0 gateway was 192.168.26.253 and my eth1 was 192.168.22.253. I needed to ping the 192.168.26.x WinPC1 to WinPC2. What command I will use on linux so that the WinPC1 can ping to WinPC2.

View 6 Replies View Related

General :: Ping Command Continues After Closing Application

Jun 4, 2010

I run the ping command using system() in C. It start pinging the desired destination but when I close my application it continues to ping. Is there any solution that as soon as I close my application it also stops pinging. Any change required in my C code?

View 2 Replies View Related

General :: Ping Similar Command For Checking Server Services?

Jan 25, 2011

I am looking for a command line utility like ping that can use for checking appropriate services on a server . I do not want do any port scan . I just want to use it for checking apache , mail,ftp and other services on a server if they are running or down.

View 3 Replies View Related

Networking :: Print AND Real-time Output Of PING Command ?

May 3, 2011

Let's say I am pinging a host, and want to output to a file each reply and its timestamp of when this started.

I know that it can be done with a loop and a shell script. Something like this

DO

echo "$(date)" >> results.txt ###includes the time and outputs results to txt###
ping -c 4 HOST >> results.txt ###a total of 4 pings at a rate of 1 per second###

REPEAT UNTIL USER PRESSES CTRL-C

Now, my first issue is that I need to be able to see results real-time as well.

Is there a way one can print to BOTH a screen and output? If one uses the ">>" command, it is essentially sending everything to the file. Running another ping command in parallel is not an option.

View 3 Replies View Related

General :: Writing A Command (for Loop) That Would Ping A Class C Subnet?

Nov 4, 2010

how to write a command (for loop) that would ping a Class C subnet to make it so that it only replies once and does not show the statistics?

View 2 Replies View Related

Debian Configuration :: SSH, Ping And ARP Not Working As They Should

Mar 13, 2010

i am running debian testing and the last few days i was trying to ssh to another pc on my network and i was getting an error like there was no machine with that ip! then i tried pinging to it with no luck! ARP was the only tool that returned the MAC address of the machine and that is strange i think. i realised then that i could only ping the gateway and localhost (127.0.0.1 not my ip). after editing my /etc/hosts, i could ping my ip as well. what is so wrong? here are some useful things:

my new /etc/hosts:
jack@debian:~$ cat /etc/hosts
127.0.0.1   localhost
127.0.1.1   debian.local debian

[Code].....

View 1 Replies View Related

Programming :: PING Using Raw Sockets In C?

Nov 18, 2010

Is there any way to implement a simple ping script in C (unix)? I'm programming simple OpenWRT scripts.

I have found some examples of ping in C:

[URL]

However, nothing happens, nothing is sent.

When I look at the code, in the portion where the socket is created, I can see that the socket is not binding to any interface:

Code:
if ((sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP)) == -1)
{
perror("socket");
exit(EXIT_FAILURE);
}
setsockopt(sockfd, IPPROTO_IP, IP_HDRINCL, &optval, sizeof(int));

Instead, it uses "setsockopt" to set some options.

My guess is that it is trying to send packets over the eth0 interface instead over the wl0 (wireless) interface (which is the one I want to use to send pings).

Now, my question is: Is there any other way to send pings in C by binding to an interface?

View 1 Replies View Related

General :: Ping Not Working In Chroot Environment

May 16, 2011

How can I use the ping command in a chroot environment?
$ ping 8.8.8.8
ping: icmp open socket: Operation not permitted
Currently I am using CentOs, but ideally there must be a solution that works in all chrooted environments.

View 2 Replies View Related

Ubuntu Networking :: Ping Working But Still No Internet

Jan 1, 2010

I can ping my router, i can ping google and i can ping the ip address you get in the ubuntu help.If i type 192.168.1.1 i can get my router control panel/i just cant connect to the web,

View 1 Replies View Related

CentOS 5 Networking :: Ping Localhost Not Working?

Mar 13, 2009

it was not working and ping is not reply me and I add ifconfig lo 127.0.0.1 it is working and getting ping but when reboot it is lost setting how can I set it for always ping working.

PING localhost (127.0.0.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ifconfig lo 127.0.0.1 later

[Code]....

now working but IWant reboot later working about same. how can I setting it boot start this .

View 7 Replies View Related

CentOS 5 Networking :: Internet Working But Can't Ping?

Sep 10, 2009

My server was working perfectly.

My other uses on on LAN can access Internet but Cant ping the server.

Though they were able to do that earlier.

No software installed. No change in any files.

View 1 Replies View Related

Programming :: Ping Hosts From Database?

Apr 26, 2011

I have a php scriptI want it to ping list of ips from a databse(using fping) and based on the status of the values to put them in a field(status) into the database(0 if down,1 if up)i executed tghe script and it gives me this error:Thread 1 - 17:51:01 26-04-2011 4.2.2.2 alive Couldn't execute query.I cant see what 's wrongthis is the source of the php script:

<?php
require_once("conf.php");
$connection1 = mysql_connect($h, $u, $p) or die("Couldn't connect.");

[code]....

View 1 Replies View Related

Programming :: Ping A List Of Devices?

Jul 27, 2010

I would like to ping all my virtual hosts in virtual machine server with a oneliner. For example like this:

Code:

for i in $(seq 1 20); do if [[ $(ping host$i.virtualhostserver.com -c 2 2>/dev/null | grep "2 received") == "2 packets transmitted" ]]; then echo $i; fi; done

The problem is, that I'm afraid my if-sentence is somewhat wrong because it never gets a match even if I know, that host is up.

View 5 Replies View Related

Programming :: Ping With Shell Script?

Sep 15, 2010

Now I am using ping command following

ping -I eth1 192.168.1.17

I want to add to shell script but I want type myself -I and eth1 when running the bash file.

View 9 Replies View Related

OpenSUSE Network :: Unable To Ping Up And Working Computer On LAN

May 11, 2011

unreachable computer's ifconfig reports xxx.xxx.xxx.37 but when I ping that address from another computer it says "Destination Host Unreachable" (all the other computers on the LAN can ping each other except this one particular computer)I can ping other computers from the unreachable computer just fine...

View 9 Replies View Related

Networking :: CentOS5.5- Eth1 To Router Ping Is Not Working

Jun 14, 2010

I have static route for eth1:

[Code].....

eth1 (13.3.3.2) is connected to router port 2/0 (13.3.3.1). I am trying to ping from eth1 to router or vice versa. None of them is not working. Don't know what is problem. [root@perseus anvltest]# ping 13.3.3.1 PING 13.3.3.1 (13.3.3.1) 56(84) bytes of data.

3 packets transmitted, 0 received, 100% packet loss, time 2000ms

[Code]....

View 4 Replies View Related

Networking :: ARP Packet From WiFi Router - Ping Not Working

Jun 15, 2011

I am trying to get an arp packet from my wireless wifi router (access point), to which I am not connected. I simply tried ping 192.168.0.1, but the answer was connect: network is unreachable. What can I do about that?

View 5 Replies View Related

Programming :: PHP - Ping Test In Shell / CMD Window

Mar 4, 2010

I'm trying to do the following. from a php webpage click on a link, that opens a shell/cmd and runs an open ping to the device. so it must actually open a shell (for linux) or cmd (for windows) and run a ping to the specified ip. Currently i'm running an exec command, but for this i need to wait for the result to be fetched and print it out. I want to monitor it in realtime, by just clickingon the button. How to get this working?

View 1 Replies View Related

OpenSUSE Network :: Ping Works But DNS Not Working In Browser / Sort It?

May 30, 2011

Originally after an installation of openSUSE 11.4, I had no internet connection at all, even when connecting with ethernet cable. But then I tried switching back to YaST and then back to Network Manager, and restarted a couple times, and now I have internet connection. DNS is also working, for Ping. The problem is that firefox does not use DNS and cannot resolve host names. I can use Firefox with IP numbers.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved