ldattach
(8)attach a line discipline to a serial line
Options
13-1--onestopbitSet the number of stop bits of the serial line to one.
-2--twostopbitsSet the number of stop bits of the serial line to two.
-7--sevenbitsSet the character size of the serial line to 7 bits.
-8--eightbitsSet the character size of the serial line to 8 bits.
-d--debugKeep ldattach in the foreground so that it can be interrupted or debugged, and to print verbose messages about its progress to standard error output.
-e--evenparitySet the parity of the serial line to even.
-n--noparitySet the parity of the serial line to none.
-o--oddparitySet the parity of the serial line to odd.
-s--speedvalueSet the speed (the baud rate) of the serial line to the specified value.
-c--intro-commandstringDefine an intro command that is sent through the serial line before the invocation of ldattach. E.g. in conjunction with line discipline GSM0710, the command 'AT+CMUX=0\r' is commonly suitable to switch the modem into the CMUX mode.
-p--pausevalueSleep for value seconds before the invocation of ldattach. Default is one second.
-h--helpDisplay help text and exit.
-V--versionDisplay version and exit.
DESCRIPTION
The ldattach daemon opens the specified device file (which should refer to a serial device) and attaches the line discipline ldisc to it for processing of the sent and/or received data. It then goes into the background keeping the device open so that the line discipline stays loaded.
The line discipline ldisc may be specified either by name or by number.
In order to detach the line discipline, kill(1) the ldattach process.
With no arguments, ldattach prints usage information.
LINE DISCIPLINES
Depending on the kernel release, the following line disciplines are supported:
TTY(0)
SLIP(1)
MOUSE(2)
PPP(3)
STRIP(4); AX25(5); X25(6)
6PACK(7); R3964(9)
IRDA(11)
HDLC(13)
SYNC_PPP(14)
HCI(15)
GIGASET_M101(16)
PPS(18)
GSM0710(21)
AUTHORS
Tilman Schmidt tilman@imap.cc
REPORTING BUGS
For bug reports, use the issue tracker https://github.com/util-linux/util-linux/issues.
AVAILABILITY
The ldattach command is part of the util-linux package which can be downloaded from Linux Kernel Archive https://www.kernel.org/pub/linux/utils/util-linux/.