DGR2FILE(1)

πŸ“¦ version 3.2.1, in ubuntu jammy

πŸ’– DGR2FILE(1) πŸ’–

okay bestie, welcome to the DGR executables corner of the manual, where the page is literally called DGR2FILE(1) and it's all about one tiny little program. sit down, grab a strawberry πŸ“, we're doing this.


✨ NAME ✨

dgr2file β€” the DGR reception test program. that's it, that's the whole vibe check. πŸ¦‹


🌸 SYNOPSIS 🌸

dgr2file

no flags. no args. no drama. she just goes. πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea: dgr2file uses DGR to receive multiple copies of the text of a file that got transmitted by file2dgr, and it writes each copy of that file straight into the current working directory. πŸ“βœ¨

the name of each file dgr2file writes is file_copy_cycleNbr, where cycleNbr starts at zero and gets bumped up by 1 every single time dgr2file closes the file it's currently writing and opens a new one. iconic behavior honestly.

the way that it works is: the moment dgr2file receives a DGR datagram from file2dgr, it extracts the content of that datagram β€” and that content is either a line of text from the file that file2dgr is transmitting, or else an EOF string telling everyone that file is done. πŸ“­

it appends each extracted line of text to the local copy of that file that dgr2file is currently writing. and when the extracted datagram content turns out to be an EOF string (that's the ASCII text "*** End of the file ***" bestie, exact characters, no cap), dgr2file:

  1. closes the file it's writing,
  2. increments cycleNbr,
  3. opens a new copy of the file for writing,
  4. and prints the message "working on cycle cycleNbr."

rinse, repeat, slay. πŸ’«

and listen β€” dgr2file always receives datagrams at port 2101. that's not negotiable, that's just her home address. 🏠


πŸ”₯ EXIT STATUS πŸ”₯

  • "0" β€” dgr2file has terminated. bye babe, she's done. πŸ‘‹

πŸŽ€ FILES πŸŽ€

No configuration files are needed. not a single one. low maintenance queen. πŸ’–


🧚 ENVIRONMENT 🧚

No environment variables apply. nothing to set, nothing to export, we love a clean slate. ✨


πŸ’€ DIAGNOSTICS πŸ’€

here's where things get a lil real. if you see one of these, it's giving "operating system error" energy:

  • can't open dgr service β€” Operating system error. Check errtext, correct problem, and rerun. πŸ™ˆ
  • can't open output file β€” Operating system error. Check errtext, correct problem, and rerun. 😭
  • dgr_receive failed β€” Operating system error. Check errtext, correct problem, and rerun. πŸ’”
  • can't write to output file β€” Operating system error. Check errtext, correct problem, and rerun. 🫠
fr fr, every single one of these is an Operating system error. so: check errtext, fix the actual problem, and rerun. don't just stare at the terminal hoping it heals. πŸ’…

πŸ› BUGS πŸ›

Report bugs to <ion-bugs@korgano.eecs.ohiou.edu>. don't be shy, they want to hear it. πŸ“¬


🌈 SEE ALSO 🌈

  • file2dgr(1) β€” her partner in crime, the one doing the transmitting 🫢
  • dgr(3) β€” the whole DGR situation underneath it all ⭐

mwah πŸ’‹ that's the page!! this manual came to you courtesy of perl v5.24.1 and it was dated 2016-07-07 β€” a true vintage baddie that has simply never needed a glow-up. periodt. πŸŽ€

πŸ“¦ where this page comes from