Programming :: Get Errors When Marc Greis 7 Th Chapter Ping Program Was Tried?

Dec 16, 2010

Please let me know how i will overcome this.I have tried from the past 5 days.

[root@localhost ~]# cc p.cc
In file included from p.cc:1:
/root/ping.h:2:32: warning: multi-character character constant
In file included from p.cc:1:
/root/ping.h:4: error: stray in program
/root/ping.h:2: error: invalid function declaration

[Code]...

View 2 Replies


ADVERTISEMENT

Programming :: NS2 Marc Greis Chapter 7 Ping Protocol Code

Dec 16, 2010

Split programming in ns2 marc greis chapter 7 ping protocol code. I tried compiling the above program and got the errors as in error.txt I have attached. Ping.cc and ping.h also are attached. I have supplied all the required header files along with appropriate paths and yet this problem.

ATTACH]5537[/ATTACH]
pingcc.txt
pingh.txt

View 3 Replies View Related

Ubuntu Networking :: Run Cmds On Marc Greis Tutorial - Error "can't Find Ns: No Such Command"

Jun 9, 2010

Want to run some cmds on Marc Greis Tutorial but always gets an error msg- "can't find ns: no such command. How can I resolve it? Also do not know how to edit on the terminal Have to start afresh anytime I notice a mistake. How can I successfully run a file to get a result. Have not been able to reproduce the result in Marc Greis tutorials.

View 5 Replies View Related

Programming :: C Program That Displays Shapes - Keep Getting Errors

Oct 10, 2010

Here is my program. It asks the user for input and then prints a shape of a certain length. The errors I get when I compile are:

shape.c: In function "main":
shape.c:22: error: expected identifier or "(" before "int"
shape.c:58: error: expected expression before "return"
shape.c:59: error: expected expression before "}" token
shape.c:59: error: expected expression before "}" token
#include<stdio.h> .....

View 14 Replies View Related

Programming :: Errors - Make Pop-up Reminders For The Simple Calendar Program?

Feb 21, 2010

First off, I'm completely new to bash scripting so forgive me if I make any egregious errors. I'm trying to make pop-up reminders for the simple calendar program when. This is what I have so far:

Code:
#!/bin/bash
# set the time format for when
#current="$(date +%I:%M %p)"
current="$(date +%-l%p)"
today=~/.when/today

[Code]....

When I run the script, gxmessage pops up and displays the correct information, but it does so for each line in "~/.when/today" that contains a time that matches the current system time (which would be three pop-ups at 10PM, according to the example). I want it to display the information only once. How can this be accomplished? Is a while loop even the right job for this?

View 8 Replies View Related

Programming :: Valgrind Output Showing Addresses Not Code Against Errors - 2 Errors From 2 Contexts (suppressed: 0 From 0)

Feb 26, 2010

I am running Valgrind on my program. It shows me two errors but mentions only addresses against them and not actual code even on a debug build.

The output is

==23002== Memcheck, a memory error detector.
==23002== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==23002== Using LibVEX rev 1575, a library for dynamic binary translation.

[code]....

View 1 Replies View Related

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

Software :: Adding Chapter Markers To Videos

Mar 3, 2010

Is there any linux video editor that supports adding chapter markers to videos? I tried everything I could get my hands on, including openshot and kdenlive (which last won't run under GNOME, however many kde libs I install, and I don't want to switch to kde4 which I hate), and so far nothing works. I don't understand where the problem is; it's so easy on the Mac. Is there an application comparable to the Mac's GarageBand?

I am not talking about creating music here (though I may in the future), simply about adding chapter markers to videos, which GarageBand does very well and fast. I could go on using GarageBand, which can import .mkv and .avi movies, but eventually I should like to switch over to Ubuntu completely, because maintaining two complete systems including two full sets of backups is very uncomfortable.

View 5 Replies View Related

Software :: Create A DVD With A Separate Chapter For Each .avi File?

Mar 2, 2010

I use DeVeDe a lot, and it works great for general conversion and DVD authoring. I don't know, however, how to create a DVD such that each of the original .avi files will be their own chapters. In other words, I have about six or seven .avi files (episodes of a season of a television show) and I want to create a DVD with those episodes that I can navigate separately. Do I first convert each .avi? How then do I create a single DVD with six or seven chapters/episodes?

View 2 Replies View Related

Ubuntu Multimedia :: Totem Shows Chapter Name - Turn This Off?

Jul 1, 2011

I played an MP4 file with Totem and it showed the chapter name. How to turn this off?

View 2 Replies View Related

Ubuntu :: OpenOffice Doesn't Allow Formula Numbering Relative To A Chapter?

Nov 3, 2010

I could not number formula in Open Office writer relative to a chapter. I would like to numbering like 1.1, 1.2, 1.2. 2.1 etc. Is it possible. I searched in Helps, but doesn't found anything!

View 1 Replies View Related

Programming :: Program A SH - Bash Program With Zenity To Play Radio Based On A Site?

Feb 15, 2011

I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html

My code to get url's radio country.htm is:

Code:

View 2 Replies View Related

Ubuntu :: Bunch Of C Errors On Program Compilation - Unsupported And Virtually Unknown

Feb 24, 2011

I'm attempting to install a small application called Asymptopia Flashcard System on Xubuntu x64. It's unsupported and virtually unknown, so I don't know many details about it aside from what I can gather from the source files. The first step in the installation directions is to type "make lib_install" as root at the command line. I get this output:

Making libasymptopia.so ... compiling Path.C ... Path.C: In member function �void Path::listdir(char*, std::deque<char*, std::allocator<char*> >*): followed by a bunch of errors like this: Path.C:38: error: �strcmp� was not declared in this scope

all for the file Path.C, all of them complaining about various header files not being declared. I have the latest version of gcc installed, so I'm very confused about what the problem is. This application is at least a few years old...maybe there's something out-of-date about the way it includes the header files?

View 1 Replies View Related

Programming :: Open Or Run A File/program Through A C++ Program

Jan 15, 2010

Ok so Basically i have 2 questions

1. i know how to create a file with c++ using but is there a way to save it to a specific location on your computer with windows and linux

Code:

2. i need to know how to run/execute/open a file in a c++ program im using and its not working

Code:

View 4 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

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

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

Programming :: Script With Will Ping A Network To Find Out Unused IP?

Jun 29, 2010

Is it possible to create threads in BASH? I need a script with will ping a network to find out unused IP. in a for or while loop the pinging process is taking a very long time. I was wondering if it is possible to send multiple ping on the same time so this will speed up the scanning process.

View 5 Replies View Related

Programming :: Ping IP Addresses Using Bash (Online Or Unavailable)

Jun 14, 2011

I am new to linux and am trying to write a script that will ping IP addresses and say either online or unavailable.

View 3 Replies View Related

Programming :: Regarding Memory Errors In G++?

Jul 22, 2011

I have a general question regarding memory errors. I frequently ran into memory errors such as seg fault, double free, etc. Sometimes I got the following traces for example.

*** glibc detected *** /mnt/click: free(): invalid pointer: 0xb7ed8450 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7dff905]
/lib/libc.so.6[0xb7e011a3]

[code]....

Then, I just run gdb, valgrind things and suddenly I started ask questions myself that what are those traces and how can I analyze?

View 1 Replies View Related

Programming :: Compilation Errors In C?

Sep 7, 2010

When compiling a C program i get the following errors.How do i modify the code to remove these warning messages?

1) "test.c", line 614: warning #4212-D: mismatch between character pointer
types "unsigned char *" and "char *"
p_data = m_lines[p_text_idx];

[code]....

View 2 Replies View Related

Programming :: Errors Using Curses.h?

Feb 28, 2010

I am trying to compile a program for my assignment at school that uses curses.I have installed libncurses5-dev, and curses.h is now in /usr/include, but I am getting all these errors(it compiles fine at school).

Code:
grcunning@grcunning-desktop:~/school/cs474/assign7$ gcc -o proj7 proj7.c
/tmp/cc2ZFXrs.o: In function `main':

[code]....

View 2 Replies View Related

Programming :: Build A Simple Program For C Programming Class?

Feb 12, 2011

im trying to build a simple program for my C programming class, this is the source code

#include <stdio.h>
int main()
{
int length, width, length, height, area, perimeter;
perimeter = width + length + height;
area = width * length + heigth;

[Code]...

i dont see any error (you might)but every time i run it it runs but after it asks me to input for the width i do it but it doesn't take me to the length, it just stays blank until i input another value in the same place for the width, it asks me for 4 inputs in total i don;t know why, and after i run it different times it gives me different values for the perimeter and are. how can I fix this?

View 5 Replies View Related

OpenSUSE Network :: Nmblookup Resolves But Cannot Ping Netbios Names Or Ping FQDN

Feb 23, 2011

This applies to my 2 opensuse PC's, my Windows PC is fine.I can ping a hostname, say "PC1" but I can not ping PC1.domain.local (even the host PC can not ping it's own FQDN). When I ping just the hostname the ping stats even list the FQDN.Onto the next issue, since all my PC's, have the domain prefix domain.local, my Synology can not. I can ping it's IP and that is it. I can resolve it's name with nmblookup just fine tho and that is what is killing me. How is this not resolving.Even weirder, I can browse to "Synology" in Network Servers under places on the slab.

View 3 Replies View Related

General :: Ping - Gives Unknown Host Error - Ping To LAN Address Works Fine

May 13, 2011

Even ping google's ip address doesn't work. unknown host error using backtrack4 able to browse net with these settings.

My network settings:

What's the problem with these settings...

View 10 Replies View Related

Networking :: Debian 5 - After SysCp Installation And Configure Ping Valure - Ping - Unknown Host

Jul 9, 2010

Ive got a problem on my server ....installed Debian 5 , Webmin and than syscp settung up syscp ready ....

I try to ping "localhost" ansver ping: unknown host
I try to ping "localhost." there is a host with IP 127.0.0.1

I need it to change it in "localhost"

Is that the bind9 maybe?

View 1 Replies View Related

Software :: Alice Animation Program And Ubuntu - Keep Getting Java And Or Alice Errors

Apr 5, 2010

I have been trying to install Alice on the latest version of Ubuntu but keep getting java and or Alice errors. Have not yet found a version set up for Ubuntu and nothing shows up in the repositories.

View 4 Replies View Related







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