Sponsored Content
Full Discussion: c++ ping program
Top Forums Programming c++ ping program Post 302095180 by zero0x on Saturday 4th of November 2006 12:35:16 AM
Old 11-04-2006
i have got similiar problem.. i have created program, which has database of ip and mac address in wifi. wifi ap is controling ip and macs, so I need to change both. i have program that first prints all ips and macs to the screen, and than asks user for ip he want. after you enter ip, program configures all, and i am able to connect.

this is my problem: now i must first use nmap to check if my victim is online. if he is, i am not able to change my addresses to victim's. if his offline i can do it. so i want to change my program. it checks if victim is online, and prints it to screen. or just print only offline victims..

so i need PING for c++
 

10 More Discussions You Might Find Interesting

1. IP Networking

ping program with explanations please!!!!!

need help!! need a ping program written in c with the explanations as to what each variable,function does!!! please help!! (4 Replies)
Discussion started by: sachin_zeus
4 Replies

2. Programming

How to write to stdin of another program (program A -> [stdin]program B)

Hi, Program A: uses pipe() I am able to read the stdout of PROGAM B (stdout got through system() command) into PROGRAM A using: * child -> dup2(fd, STDOUT_FILENO); -> execl("/path/PROGRAM B", "PROGRAM B", NULL); * parent -> char line; -> read(fd, line, 100); Question: ---------... (1 Reply)
Discussion started by: vvaidyan
1 Replies

3. Programming

A program to trace execution of another program

Hi, I wanted to know if i can write a program using switches and signals, etc to trace execution of other unix program which calls c program internally. If yes how? If not with signals and switches then are there any other methods apart from debugging with gdb/dbx. (3 Replies)
Discussion started by: jiten_hegde
3 Replies

4. UNIX for Dummies Questions & Answers

Script to open program and send/execute command in program

Hi, i want to write a script that executes a program (exec?) . this program then requires a filename as input. how do i give it this input in the script so the program will be complete run and close by the script. e.g. exec prog.exe program then asks for filename "enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies

5. Programming

Python program faster than C++ program.

I wrote a simple program that generates a random word 10,000,000 times. I wrote it in python, then in C++ and compared the two completion times. The python script was faster! Is that normal? Why would the python script be faster? I was under the impression that C++ was faster. What are some of... (2 Replies)
Discussion started by: cbreiny
2 Replies

6. Homework & Coursework Questions

Calling compiled C program with Perl program

Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Discussion started by: jdkirby
1 Replies

7. Shell Programming and Scripting

Animation Ping on Solaris Like Cisco Ping

Hi, I develop simple animation ping script on Solaris Platform. It is like Cisco ping. Examples and source code are below. bash-3.00$ gokcell 152.155.180.8 30 Sending 30 Ping Packets to 152.155.180.8 !!!!!!!!!!!!!.!!!!!!!!!!!!!!!. % 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
1 Replies

8. Shell Programming and Scripting

How to get reason for ping failure using perls Net::Ping->new("icmp");?

Hi I am using perl to ping a list of nodes - with script below : $p = Net::Ping->new("icmp"); if ($p->ping($host,1)){ print "$host is alive.\n"; } else { print "$host is unreacheable.\n"; } $p->close();... (4 Replies)
Discussion started by: tavanagh
4 Replies

9. Programming

Ping test sends mail when ping fails

help with bash script! im am working on this script to make sure my server will stay online, so i made this script.. HOSTS="192.168.138.155" COUNT=4 pingtest(){ for myhost in "$@" do ping -c "$COUNT" "$myhost" &&return 1 done return 0 } if pingtest $HOSTS #100% failed... (4 Replies)
Discussion started by: mort3924
4 Replies

10. Shell Programming and Scripting

Perl program get a response before the program quits

I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the best place for it to print out the grade. I have: if ( $response =~ m/^/ ) { $user_wants_to_quit... (1 Reply)
Discussion started by: germany1517
1 Replies
GNOME-CONTROL-CENT(1)						   User Commands					     GNOME-CONTROL-CENT(1)

NAME
gnome-control-center - Configure GNOME settings SYNOPSIS
gnome-control-center [OPTION...] [PANEL] [ARG...] DESCRIPTION
gnome-control-center is a graphical user interface to configure various aspects of GNOME. When run without arguments, the shell displays the overview, which shows all available configuration panels. The overview allows to open individual panels by clicking on them. It also has a search entry to find panels by searching keywords. It is also possible to specify a panel name as commandline argument to go directly to that panel. Individual panels may accept further arguments to specify which tab to open (for multi-tabbed panels) or which item to display (for panels with lists). Note that gnome-control-center is not meant to expose each and every setting that is available. The settings that can be found here represent what is considered useful and commonly needed options. For more exotic or uncommon options, you can look at gnome-tweak-tool or the gsettings commandline utility. PANELS
The following panel names can be specified: background The background panel lets you set your desktop background. bluetooth The bluetooth panel lets you configure your computer's Bluetooth adapter, and pair the computer with Bluetooth keyboards, phones, etc. color The color panel can calibrate monitors, web cams and printers for accurate color reproduction. datetime The datetime panel lets you set the timezone and time format. Some operations in this panel affect all user accounts on the computer and require privieges. display The display panel configures the resolution and arrangement of monitors and laptop panels. Note that monitors can be rearranged by drag-and-drop, and you can change which monitor is your main display by dragging the black bar. info The info panel shows a general overview of the system configuration. It also lets you change the default applications for various tasks and the handling of removable media. keyboard The keyboard panel can change how the keyboard reacts to key presses and lets you change keyboard shortcuts or create custom shortcuts. You can open this panel on a specific tab by passing typing or shortcuts as extra argument. mouse The mouse panel can change how mice and touchpads react to user input. network The network panel provides a view of available network devices (wired, wireless or mobile) and their current configuration. It also provides a way to create new VPN connections and configure proxy settings. You can open this panel on a specific dialog by passing create-wifi, connect-hidden-wifi, connect-3g, connect-8021x-wifi or show-device as extra argument. The last three parameters require an additional extra argument for the network object in the form /org/freedesktop/NetworkManager/Devices/0. notifications The notifications panel provides a way to control the display of notifications. online-accounts The online-accounts panel shows your configured online accounts and lets you add or remove accounts. power The power panel shows the fill level of batteries and can configure what happens when the computer is idle or runs out of battery. printers The printers panel shows all known printers and their status. It is possible to inspect queued print jobs and add new printers. Some operations in this panel require privileges. privacy The privacy panel allows to control visible file usage history, temporary files, and name. region The region panel contains regional settings such as the display language, formatting for times, dates, numbers, and input sources. search The search panel controls the results visible in the overview, and the files and folders to be indexed. screen The screen panel contains settings that control the screen brightness and screen lock behavior. sharing The sharing panel contains settings that control what is shared over the network. sound The sound panel shows all known sound devices and their configuration, including volume and balance settings. You can open this panel on a specific tab by passing output, input, hardware, effects or applications as extra argument. universal-access The universal-access panel contains settings for accessible technologies such as the screen reader, magnifier, screen keyboard and AccessX options. user-accounts The user-accounts panel shows all user accounts that exist on the computer and allows to change them in some ways, such as changing the user name, password or permissions. It also allows to create or remove accounts. Some operations in this panel require privileges. wacom the wacom panel shows connected Wacom graphics tablets and lets you calibrate and configure such devices. OPTIONS
-?, --help Prints a short help text and exits. --version Prints the program version and exits. -v, --verbose Enables verbose mode. -l, --list Lists the available panels and exits. -o, --overview Opens the overview. -s term, --search term Sets the following search term. EXIT STATUS
On success 0 is returned, a non-zero failure code otherwise. SEE ALSO
gsettings(1) GNOME
GNOME-CONTROL-CENT(1)
All times are GMT -4. The time now is 01:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy