{
    "content": [
        {
            "type": "text",
            "text": "# SLATTACH(8) (man)\n\n**Summary:** slattach - attach a network interface to a serial line\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -c | — | — | Execute command when the line is hung up. This can be used to run scripts or re-estab‐ lish connections when a link goes |\n| -p | — | — | Set a specific kind of protocol to use on the line. The default is set to cslip, i.e. compressed SLIP. Other possible va |\n| -s | — | — | Set a specific line speed, other than the default. If no arguments are given, the current terminal line (usually: the lo |\n\n## See Also\n\n- kissattach(8)\n- dip(8)\n- pppd(8)\n- sliplogin(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (1 lines) — 1 subsections\n  - slattach [-dehlLmnqv] [-c command] [-p proto] [-s speed] [tt (1 lines)\n- **DESCRIPTION** (4 lines)\n- **OPTIONS** (3 lines) — 3 subsections\n  - [-c command] (23 lines)\n  - [-p proto] (8 lines)\n  - [-s speed] (5 lines)\n- **FILES** (2 lines)\n- **BUGS** (2 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHORS** (9 lines)\n\n## Full Content\n\n### NAME\n\nslattach - attach a network interface to a serial line\n\n### SYNOPSIS\n\n#### slattach [-dehlLmnqv] [-c command] [-p proto] [-s speed] [tty]\n\n### DESCRIPTION\n\nSlattach  is  a tiny little program that can be used to put a normal terminal (\"serial\") line\ninto one of several \"network\" modes, thus allowing you to use it for point-to-point links  to\nother computers.\n\n### OPTIONS\n\ntty    Path  to a serial device like /dev/ttyS*, /dev/cua* or /dev/ptmx to spawn a new pseudo\ntty.\n\n#### [-c command]\n\nExecute command when the line is hung up. This can be used to run scripts or re-estab‐\nlish connections when a link goes down.\n\n[-d]   Enable debugging output.  Useful when determining why a given setup doesn't work.\n\n[-h]   Exit when the carrier is lost. This works on both /dev/tty and /dev/cua devices by di‐\nrectly monitoring the carrier status every 15 seconds.\n\n[-v]   Enable verbose output.  Useful in shell scripts.\n\n[-q]   Operate in quiet mode - no messages at all.\n\n[-l]   Create an UUCP-style lockfile for the device in /var/lock.\n\n[-n]   Equivalent to the \"mesg n\" command.\n\n[-m]   Do not initialize the line into 8 bits raw mode.\n\n[-e]   Exit right after initializing device, instead of waiting for the line to hang up.\n\n[-L]   Enable 3 wire operation. The terminal is moved into CLOCAL mode, carrier  watching  is\ndisabled.\n\n#### [-p proto]\n\nSet a specific kind of protocol to use on the line.  The default is set to cslip, i.e.\ncompressed SLIP.  Other possible values are slip  (normal  SLIP),  adaptive  (adaptive\nCSLIP/SLIP), ppp (Point-to-Point Protocol) and kiss (a protocol used for communicating\nwith AX.25 packet radio terminal node controllers).  The special argument tty  can  be\nused  to  put  the  device back into normal serial operation.  Using 'ppp' mode is not\nnormally useful as ppp requires an additional ppp daemon pppd  to  be  active  on  the\nline. For kiss connections the kissattach program should be used.\n\n#### [-s speed]\n\nSet a specific line speed, other than the default.\n\nIf  no  arguments  are  given, the current terminal line (usually: the login device) is used.\nOtherwise, an attempt is made to claim the indicated terminal port, lock it, and open it.\n\n### FILES\n\n/dev/cua* /var/lock/LCK.* /dev/ttyS* /dev/ptmx\n\n### BUGS\n\nNone known.\n\n### SEE ALSO\n\nkissattach(8), dip(8) pppd(8), sliplogin(8).\n\n### AUTHORS\n\nFred N. van Kempen, <waltje@uwalt.nl.mugnet.org>\nAlan Cox, <Alan.Cox@linux.org>\nMiquel van Smoorenburg, <miquels@drinkel.ow.org>\nGeorge Shearer, <gshearer@one.net>\nYossi Gottlieb, <yogo@math.tau.ac.il>\n\n\n\nnet-tools                                    2011-12-31                                  SLATTACH(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "SLATTACH",
        "section": "8",
        "mode": "man",
        "summary": "slattach - attach a network interface to a serial line",
        "synopsis": "",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": "Execute command when the line is hung up. This can be used to run scripts or re-estab‐ lish connections when a link goes down. [-d] Enable debugging output. Useful when determining why a given setup doesn't work. [-h] Exit when the carrier is lost. This works on both /dev/tty and /dev/cua devices by di‐ rectly monitoring the carrier status every 15 seconds. [-v] Enable verbose output. Useful in shell scripts. [-q] Operate in quiet mode - no messages at all. [-l] Create an UUCP-style lockfile for the device in /var/lock. [-n] Equivalent to the \"mesg n\" command. [-m] Do not initialize the line into 8 bits raw mode. [-e] Exit right after initializing device, instead of waiting for the line to hang up. [-L] Enable 3 wire operation. The terminal is moved into CLOCAL mode, carrier watching is disabled."
            },
            {
                "flag": "-p",
                "long": null,
                "arg": null,
                "description": "Set a specific kind of protocol to use on the line. The default is set to cslip, i.e. compressed SLIP. Other possible values are slip (normal SLIP), adaptive (adaptive CSLIP/SLIP), ppp (Point-to-Point Protocol) and kiss (a protocol used for communicating with AX.25 packet radio terminal node controllers). The special argument tty can be used to put the device back into normal serial operation. Using 'ppp' mode is not normally useful as ppp requires an additional ppp daemon pppd to be active on the line. For kiss connections the kissattach program should be used."
            },
            {
                "flag": "-s",
                "long": null,
                "arg": null,
                "description": "Set a specific line speed, other than the default. If no arguments are given, the current terminal line (usually: the login device) is used. Otherwise, an attempt is made to claim the indicated terminal port, lock it, and open it."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "kissattach",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/kissattach/8/json"
            },
            {
                "name": "dip",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/dip/8/json"
            },
            {
                "name": "pppd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pppd/8/json"
            },
            {
                "name": "sliplogin",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/sliplogin/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "slattach [-dehlLmnqv] [-c command] [-p proto] [-s speed] [tty]",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 3,
                "subsections": [
                    {
                        "name": "[-c command]",
                        "lines": 23
                    },
                    {
                        "name": "[-p proto]",
                        "lines": 8
                    },
                    {
                        "name": "[-s speed]",
                        "lines": 5
                    }
                ]
            },
            {
                "name": "FILES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 9,
                "subsections": []
            }
        ]
    }
}