Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tcpbug(1) [debian man page]

TCPBUG(1)						      General Commands Manual							 TCPBUG(1)

NAME
tcpbug - TCP/IP connection bugging device SYNOPSIS
tcpbug [-cx] [-btT] local-port remote-host remote-port DESCRIPTION
tcpbug forwards a TCP/IP connection to port local-port on the local machine to the port remote-port on remote-host while spying on the con- nection and writing all data passing through to standard output. All data coming from the client is printed with a greater than sign (>) first on each line, and all data coming from the server is printed with a less than sign (<) first on each line. Any byte offsets and time-stamps are printed before the greater than or less than sign, and are separated from each other by a colon (:). OPTIONS
-b Print the offset of the first byte in the stream for each line. -c Display bytes as individual characters. Printable characters are displayed directly, some control characters appear as C-language escapes ( , , et.c), while others appear as 3-digit octal numbers. This should be similar to the -c switch of od(1). -t Print the time at which the data was received for each line. The time is the number of seconds and microseconds, separated by a decimal point (.), since 00:00 UTC, January 1, 1970, as reported by gettimeofday(). -T Print the time at which the data was received for each line. The time is the number of seconds and microseconds, separated by a decimal point (.), since the connections were established. -x Display each byte as a two digit hexadecimal number. SEE ALSO
tcpconnect(1), tcplisten(1), od(1). BUGS
The names of the options are not yet finalized, and may change at a future release. 1997 April 13 TCPBUG(1)

Check Out this Related Man Page

TCPCONNECT(1)						      General Commands Manual						     TCPCONNECT(1)

NAME
tcplisten - general TCP/IP server SYNOPSIS
tcplisten [-irv] [localaddr] port DESCRIPTION
tcplisten waits for a TCP/IP connection on port. If a localaddr parameter is given, tcplisten will bind to that IP address. Otherwise tcplisten will accept connections to any of the local machines IP addresses. Data received from the client is printed on standard output, and data read from standard input is sent to the client. When end-of-file is reached on both standard input and the TCP/IP connection, tcplisten terminates. OPTIONS
-i Terminate at end-of-file on standard input; don't wait for the client to close the connection. -r Terminate when the remote client closes the connection; don't wait for end-of-file on standard input. -v Verbose mode. Prints a message to standard error about the origins (host and port) of the client. SEE ALSO
tcpconnect(1), telnet(1), mini-inetd(1), tcpbug(1). BUGS
The names of the options are not yet finalized, and may change at a future release. 1997 April 13 TCPCONNECT(1)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

TCP port scanner for remote or for local

I am unable to find any TCP scanner for data captruing for a Remote or local server. Can anybody please help. i need it to read TCP port and capture the incoming/outgoing data , (3 Replies)
Discussion started by: fahadsiddiqui
3 Replies

2. IP Networking

Sniffing an established port

Hi All, On a solaris box A port B in which port B is established and receiving data. My question is how do i listen on that established port , how can i get the data received at box A: port B through my application I had searched the forum for the same, but i am unable to retrieve the... (5 Replies)
Discussion started by: matrixmadhan
5 Replies

3. Shell Programming and Scripting

Output coming in different line instead of single line

Hi Guys, I have an oracle database, I am trying to query the database and route it to file. But the records instead of coming in a single line, are coming in three lines. Can you please help me.. in this.. sqlplus -s $SRMUserid/$SRMPassword@$SRMServer<< EOF >log.out; select * from... (5 Replies)
Discussion started by: mac4rfree
5 Replies

4. Shell Programming and Scripting

time conversion

My local server is in UTC time whereas my remote server in in CST time. I get a sequential file from CST time server and the records in will contain the first line as a filename and the second line as date time like mentioned below. /abc/cde/f1.txt 2009-04-28 23:10:05 CST Now i need to... (3 Replies)
Discussion started by: HemaV
3 Replies