file2sock(1)

file2sock1

Sends the contents of a file to a tcp or unix domain socket.

Usage

file2sock -s <source> -d <dest> [-t <type>] [-p <port>]

Overview

Sends the contents of a file to a TCP or UNIX domain socket. The contents of the file are sent in their original format - no conversion, encapsulation, or other processing is done before sending the contents to the destination socket.

<source> Name of the file to read from. Use '-' to read from stdin.

<dest> If destination is a TCP socket, the address/hostname to connect to.
If destination is a Unix domain socket, the path to the socket.

<type> Specifies the type of destination socket.
Valid values include: tcp unix (default)

<port> Port number to connect to if destination is TCP socket.

Releases

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

From ndoutils-common 1.4b9-1.1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.