Sponsored Content
Top Forums Shell Programming and Scripting Shell script to give broadcast and network address Post 302463828 by DGPickett on Monday 18th of October 2010 02:12:40 PM
Old 10-18-2010
Isn't the ip address the network address?

Last I checked, the broadcast address = ~netmask | ip (top address), although sometime I think netmask & ip would also work (bottom address), yup, it does.

Can you call executables, or run somethng earlier to make it easy to pick up, like from the environment?
 

10 More Discussions You Might Find Interesting

1. IP Networking

broadcast address

What is the significance of the broadcast address? (1 Reply)
Discussion started by: 98_1LE
1 Replies

2. Shell Programming and Scripting

shell script queries: $home; broadcast ping

Dear all, This is the Bionic Fysh again. I have two quick questions: 1- when writing shell scripts, how does one allow the tilda ~ into the script ? e.g ls ~; ls ~me; user=you; ls ~$user (N.B I think that for this one you need: ls `~$user`) 2- In FreeBSD 4.0, I would like for a... (6 Replies)
Discussion started by: bionicfysh
6 Replies

3. UNIX for Dummies Questions & Answers

network address and broadcast address?

say I have a IP address which is 10.0.0.12, and subnet mask is 255.255.255.240, what is the network address and what is the broadcast address which host lives on? And could you explain how to get the answer? thanx in advance! (7 Replies)
Discussion started by: pnxi
7 Replies

4. Solaris

bge card and broadcast address

I have a bge1 card and a bge0 card, i want the broadcast addresses to match, ifconfig shows this lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 ... (1 Reply)
Discussion started by: csaunders
1 Replies

5. Shell Programming and Scripting

how to give a variable to a command in shell script...

hi all... I am executing a comman in a shell script but the command needs a user input of character 'y' as input so it stops in between...may i know is there is any way of giving that character as input in the shell script itself???...thanks in advance.... (6 Replies)
Discussion started by: santy
6 Replies

6. Shell Programming and Scripting

Can give the input to prompt using shell script

Hi, I want to send input to promt from shell script, this thing is possible. I give the one command `/usr/share/ssl/misc/CA -newreq` it needs some user input like password etc., but i need this input also from shell script but it does not works. `/usr/share/ssl/misc/CA -newreq` <<EOF... (2 Replies)
Discussion started by: Vaibhav Agarwal
2 Replies

7. Shell Programming and Scripting

network and broadcast address

Hi Suppose You have two computers. One named kenny which has an IP address of 192.168.0.7. kenny lives on a subnet with a subnet mask of 255.255.255.240. The second computer is called zathras, which has an IP address of 192.168.0.17, zathras lives on a network with the same subnet mask. i)... (4 Replies)
Discussion started by: scofiled83
4 Replies

8. Solaris

ifconfig - making netmask & broadcast address permanent?

hi, I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address. I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated. before reboot: eri0:... (3 Replies)
Discussion started by: badoshi
3 Replies

9. Programming

How to broadcast a message across the network using Socket programming in C??

My problem definition is ,I have to send a message from one node in a network and it has to be broadcasted to all other nodes in the network.The program what I have given below will be running in all the nodes in the network.The same program should be capable of sending(broadcasting) and receiving.... (1 Reply)
Discussion started by: vigneshinbox
1 Replies

10. Shell Programming and Scripting

UNIX Script to query Active Directory: give cn (NT login name) and receive mail (Email address)

Hi folks I need to write UNIX script (with ldapsearch) to query Active Directory. Input is NT login name and output is Email address. Attached a screenshot of Sysinternals "AD Explorer". I need to do the same in CLI. http://i.imgur.com/4s6FB.png I am absolute LDAP/ldapsearch noob. (0 Replies)
Discussion started by: slashdotweenie
0 Replies
ost::NetworkDeviceInfo(3)				     Library Functions Manual					 ost::NetworkDeviceInfo(3)

NAME
ost::NetworkDeviceInfo - Network device information class. SYNOPSIS
#include <network.h> Public Member Functions NetworkDeviceInfo (const NetworkDeviceInfo &ndi) ~NetworkDeviceInfo () const String & name () const Returns the Name of the network device. const InetHostAddress & address () const Returns the Address of the network device. const BroadcastAddress & broadcast () const Returns the Broadcast address of the network device. const InetMaskAddress & netmask () const Returns the Netmask of the network device. const int mtu () const Returns the MTU. Protected Member Functions NetworkDeviceInfo (const String &name, const InetHostAddress &addr, const BroadcastAddress &broadcast, const InetMaskAddress &netmask, int mtu) Friends __EXPORT bool enumNetworkDevices (std::vector< NetworkDeviceInfo > &devs) Enumerate all available network devices. Detailed Description Network device information class. This class is used to hold various informations about a TCP/IP network device. Which can be obtained by a call to enumNetworkDevices() Author: Christian Prochnow cproch@seculogix.de Constructor &; Destructor Documentation ost::NetworkDeviceInfo::NetworkDeviceInfo (const String &name, const InetHostAddress &addr, const BroadcastAddress &broadcast, const InetMaskAddress &netmask, intmtu) [protected] ost::NetworkDeviceInfo::NetworkDeviceInfo (const NetworkDeviceInfo &ndi) ost::NetworkDeviceInfo::~NetworkDeviceInfo () Member Function Documentation const InetHostAddress& ost::NetworkDeviceInfo::address () const [inline] Returns the Address of the network device. const BroadcastAddress& ost::NetworkDeviceInfo::broadcast () const [inline] Returns the Broadcast address of the network device. const int ost::NetworkDeviceInfo::mtu () const [inline] Returns the MTU. const String& ost::NetworkDeviceInfo::name () const [inline] Returns the Name of the network device. const InetMaskAddress& ost::NetworkDeviceInfo::netmask () const [inline] Returns the Netmask of the network device. Friends And Related Function Documentation __EXPORT bool enumNetworkDevices (std::vector< NetworkDeviceInfo > &devs) [friend] Enumerate all available network devices. Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::NetworkDeviceInfo(3)
All times are GMT -4. The time now is 11:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy