3
dgr2file - DGR reception test program
11
B<dgr2file> uses DGR to receive multiple copies of the text of a file
12
transmitted by B<file2dgr>, writing each copy of the file to the current
13
working directory. The name of each file written by B<dgr2file> is
14
file_copy_I<cycleNbr>, where I<cycleNbr> is initially zero and is increased
15
by 1 every time B<dgr2file> closes the file it is currently writing and
18
Upon receiving a DGR datagram from B<file2dgr>, B<dgr2file> extracts the
19
content of the datagram (either a line of text from the file that is being
20
transmitted by B<file2dgr> or else an EOF string indicating the end of that
21
file). It appends each extracted line of text to the local copy of that
22
file that B<dgr2file> is currently writing. When the extracted datagram
23
content is an EOF string (the ASCII text "*** End of the file ***"),
24
B<dgr2file> closes the file it is writing, increments I<cycleNbr>, opens
25
a new copy of the file for writing, and prints the message "working on cycle
28
B<dgr2file> always receives datagrams at port 2101.
36
B<dgr2file> has terminated.
42
No configuration files are needed.
46
No environment variables apply.
52
=item can't open dgr service
54
Operating system error. Check errtext, correct problem, and rerun.
56
=item can't open output file
58
Operating system error. Check errtext, correct problem, and rerun.
60
=item dgr_receive failed
62
Operating system error. Check errtext, correct problem, and rerun.
64
=item can't write to output file
66
Operating system error. Check errtext, correct problem, and rerun.
72
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu>