Sponsored Content
Top Forums Programming command line socket read utility Post 302146458 by zhassan on Tuesday 20th of November 2007 04:45:22 PM
Old 11-20-2007
You can try

pfiles PID |grep port

You will see the open port/s being used by the messaging daemon.

Cheers,
Zia-ul-Hassan Smilie
 

9 More Discussions You Might Find Interesting

1. Programming

top command line utility

I'm writing a monitoring application. I'd like to periodically get the information provided by the 'top' command line utility from within my code and write the output of 'top' to a file. Wondering if anyone has already done something like this. Doing system("top > someFile"); does not create... (6 Replies)
Discussion started by: antoniomorandi
6 Replies

2. Linux

The dot command-line utility?

Hi, What else is the dot used beside relative filepaths in bash? Is it a shell utility as well? No man entry for dot (.)... (3 Replies)
Discussion started by: varelg
3 Replies

3. Programming

socket function to read a webpage (socket.h)

Why does this socket function only read the first 1440 chars of the stream. Why not the whole stream ? I checked it with gdm and valgrind and everything seems correct... #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include... (3 Replies)
Discussion started by: cyler
3 Replies

4. Shell Programming and Scripting

bash: read file line by line (lines have '\0') - not full line has read???

I am using the while-loop to read a file. The file has lines with null-terminated strings (words, actually.) What I have by that reading - just a first word up to '\0'! I need to have whole string up to 'new line' - (LF, 10#10, 16#A) What I am doing wrong? #make file 'grb' with... (6 Replies)
Discussion started by: alex_5161
6 Replies

5. Shell Programming and Scripting

DB Access Command Line Utility

To read/write to a DB from Java or Perl, you usually have to install/reference several drivers and write a whole bunch of boilerplate DB access code. I'm curious if someone has written a command line utility for Unix/Linux for simple database access for the major providers, something like: ... (3 Replies)
Discussion started by: furashgf
3 Replies

6. UNIX for Dummies Questions & Answers

FTP command-line utility usage

Hi, Using command-line utility "ftp or sftp", I want to transfer files across Windows and UNIX. Can you please tell me from where I need to connect to ftp and how do I specify the hostname, credentials and how do I get and put files between DOS and UNIX? Please provide me as much... (10 Replies)
Discussion started by: Dev_Dev
10 Replies

7. Shell Programming and Scripting

Read line by line and execute command

Hi ALL, I have a requirement like this. 1.GET ALL TABLE NAME (just table name) keep in file 2.Read line by line and get the count of table from tablename files. tablename detail has a sql statement "db2 select tabname from syscat.tables" (1 Reply)
Discussion started by: netdbaind
1 Replies

8. Shell Programming and Scripting

Issue in running a command line utility in CRON

Hi Everyone! I am facing an issue in running a command line utility from the CRON. This utility displays IPC statistics on UNIX message queues: The "queue name" and the "count" of messages in the queue. When running this utility from prompt, it will provide an output on the screen, like the... (4 Replies)
Discussion started by: vai_sh
4 Replies

9. Shell Programming and Scripting

How to read the output of a command line by line and pass it as a variable?

Hi, I have some 2000 names in a table like below. Java Oracle/SQL ANSI SQL SQL,DWH,DB DB&Java And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line. I have to execute the below queries in... (10 Replies)
Discussion started by: Samah
10 Replies
routed(8)						      System Manager's Manual							 routed(8)

NAME
routed - Manages network routing tables SYNOPSIS
/usr/sbin/routed [-q | -s] [-dgt] [logfile] The routed daemon manages the network routing tables. FLAGS
Enables additional debugging information, such as bad packets received, to be logged. The routed daemon remains under control of the host that started it; therefore, an interrupt from the controlling host stops the routed process. Causes the routing daemon to run on a gateway host. This flag is used on internetwork routers to offer a route to the default destination. Inhibits the routed daemon from supplying Routing Information Protocol (RIP) data. The -q flag conflicts with the -s flag. Do not use the -q and -s flags together. Causes routed to supply RIP information even if it is not functioning as an Internet router. The -s flag conflicts with the -q flag. Do not use the -s and -q flags together. Causes all packets sent or received to be written to standard output. The routed daemon remains under control of the host that started it; therefore, an interrupt from the controlling host stops the routed process. DESCRIPTION
Use the routed daemon to manage the RIP only. Use gated to manage RIP plus other protocols. When routed starts, it finds any interfaces to directly connected hosts and networks that are configured into the system and marked as up. If multiple interfaces are present, routed assumes that the local host forwards packets between networks. The routed daemon transmits an RIP request packet on each interface (using a broadcast packet if the interface supports it) and then enters a loop, listening for RIP routing requests and response packets from other hosts. In addition, if routed is to supply RIP information to other hosts, it periodi- cally sends RIP update packets (containing copies of its routing tables) to any directly connected hosts and networks. When routed receives a RIP request packet and can supply RIP routing information, (the -s flag is set), it generates a reply (response packet) based on the information maintained in the kernel routing tables. The response packet contains a list of known routes, each marked with a hop count metric (the number of host-to-host connections in the route). The metric for each route is relative to the sending host. A metric of 16 or greater is considered to be infinite, or beyond reach. Updating Routing Tables If RIP processing is enabled, routed uses information contained in the RIP response and update packets from other hosts to update its rout- ing tables. However, routed uses the information in the RIP routing packet to update the tables only if at least one of the following con- ditions exists: No routing table entry exists for the destination network or host, and the metric associated with the route is finite (that is, the metric is less than 16). The source host of the packet is the router in the existing routing table entry. The routing table entry is old and the new information is about a route that is at least as efficient as the existing route. The new route is shorter than the one that is currently stored in the routing tables. (Note that routed determines relative route length by comparing the new metric with the one stored in the routing table.) When routed updates its internal routing tables, it generates an RIP update packet to all directly connected hosts and networks. Before updating the kernel routing tables, routed pauses for a brief period to allow any unstable conditions to stabilize. Besides processing incoming RIP packets, routed also checks the internal routing table entries periodically. The metric for any entry that has not been updated for 3 minutes is set to infinity and marked for deletion. The deletion is delayed for 60 seconds so that information about the invalidated route can be distributed throughout the network. A host that acts as an RIP router supplies its routing tables to all directly connected hosts and networks every 30 seconds. Using Gateways In addition to managing routes to directly connected hosts and networks, routed maintains information about distant and external gateways. At startup, routed reads the /etc/gateways file to learn about these gateways. The /etc/gateways file contains information about routes through distant and external gateways to hosts and networks that can be advertised through RIP. These routes are either static routes to specific destinations, or default routes that apply when a static route to a desti- nation is unspecified. Gateways that supply RIP routing information are marked active in the /etc/gateways file. The routed daemons distributes RIP routing information to active gateways; if no RIP routing information is received from the gateway for a period of time, routed deletes the associ- ated route from the routing tables. Gateways that do not exchange RIP routing information are marked passive in the /etc/gateways file. Routed maintains information about passive gateways indefinitely, and includes information about them in any RIP routing information transmitted. Gateways are identified as external to inform routed that another routing process installs the route. Information about external gateways is not maintained in the routing tables. Note that routes through external gateways must be to net- works only. If a logfile is specified, routed writes information about its actions to the specified log file. The log contains information about any changes to the routing tables and a history of recent route change messages sent and received that are related to changed routes. Signals The following signals have the specified effect when sent to the routed process using the kill(1) command: Displays internal routing tables. Broadcasts RIP packets with hop counts set to infinity. Essentially, these signals disable the local host as a router. On a sec- ond SIGHUP, SIGTERM, or SIGQUIT, routed terminates. FILES
Specifies the command path Routes through distant and external gateways Contains the network name database CAUTIONS
The gated and routed daemons should not both be run on the same host, as this may produce unpredictable results. Routes through external gateways must be to networks only. RELATED INFORMATION
Commands: route(8) Daemons: gated(8) delim off routed(8)
All times are GMT -4. The time now is 04:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy