getdsr(1)

πŸ“¦ version 1.3, in nixos 26.05, nixpkgs unstable

πŸ’… 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 -d for 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 πŸ¦‹

forktty(8)


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