getdsr(1)
π getdsr(1) β the one where we wait for the modem to wake up
okay bestie, so this is getdsr, a General Commands Manual page, and it's literally just sitting there waiting for a modem to be ready. iconic patience honestly π«Ά
β¨ NAME β¨
getdsr β wait for modem DSR on a TTY
like, it waits. on a tty. for DSR. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
getdsr [-DdhVv] [-s <interval>] tty prog args
π DESCRIPTION π
okay so here's the tea β: getdsr opens the tty with the O_NONBLOCK flag and then just... waits π waits until the modem data set ready status line is high. that's the whole personality.
it checks that status every 30 seconds as long as it's not active β like a girl refreshing her messages, no cap.
on success it closes the tty and executes the program prog with arguments args. slay. π
heads up bestie: it never succeeds if TIOCMGET is not supported. like, never ever. that's not a vibe, that's just facts. π
Ephemeral udev devices are supported β yes queen, those count too π
the program retries until open succeeds, and it also closes then reopens on an ioctl error. resilient icon behavior honestly π
and hey β use forktty for the redirection of stdin, stdout, or stderr, to the tty. iykyk π§
π OPTIONS π
-Dβ disable the DTR line. combine it with-dfor the low-high transition, bestie β¨-dβ enable the DTR line. ngl most OSes set DTR by default when opening the tty, so this is giving "just in case" energy π-hβ print help summary. your lil safety net π«Ά-sβ sleep time before rechecking the DSR line β-Vβ report the version. main character energy π-vβ display all status bits. not just some. all of them. obsessed π₯
π EXAMPLES π
getdsr ttyS1 echo DSR
getdsr -v -s 0 ttyS1 -
and in /etc/inittab:
d1:12345:respawn:/bin/getdsr ttyS0 /sbin/uugetty ttyS0 19200 vt100
look at that inittab line go π ate and left no crumbs.
π¦ SEE ALSO π¦
okay that's the whole page, bestie β no notes π this lil beauty is from 5 Januari 2011 (yes, the original really spells it that way, we respect it πΈ), part of the General Commands Manual, and it's getdsr(1) through and through. go wait on that DSR line like the icon you are πβ¨
π¦ where this page comes from
- nixos 26.05: forktty 1.3
- nixpkgs unstable: forktty 1.3
- Copyright (c) 2000,2010 Servaas Vandenberghe
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms