Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dgr2file(1) [debian man page]

DGR2FILE(1)							  DGR executables						       DGR2FILE(1)

NAME
dgr2file - DGR reception test program SYNOPSIS
dgr2file DESCRIPTION
dgr2file uses DGR to receive multiple copies of the text of a file transmitted by file2dgr, writing each copy of the file to the current working directory. The name of each file written by dgr2file is file_copy_cycleNbr, where cycleNbr is initially zero and is increased by 1 every time dgr2file closes the file it is currently writing and opens a new one. Upon receiving a DGR datagram from file2dgr, dgr2file extracts the content of the datagram (either a line of text from the file that is being transmitted by file2dgr or else an EOF string indicating the end of that file). It appends each extracted line of text to the local copy of that file that dgr2file is currently writing. When the extracted datagram content is an EOF string (the ASCII text "*** End of the file ***"), dgr2file closes the file it is writing, increments cycleNbr, opens a new copy of the file for writing, and prints the message "working on cycle cycleNbr." dgr2file always receives datagrams at port 2101. EXIT STATUS
0 dgr2file has terminated. FILES
No configuration files are needed. ENVIRONMENT
No environment variables apply. DIAGNOSTICS
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. BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu> SEE ALSO
file2dgr(1), dgr(3) perl v5.14.2 2012-05-25 DGR2FILE(1)

Check Out this Related Man Page

SDR2FILE(1)							  ICI executables						       SDR2FILE(1)

NAME
sdr2file - SDR data extraction test program SYNOPSIS
sdr2file configFlags DESCRIPTION
sdr2file stress-tests SDR data extraction by retrieving and deleting all text file lines inserted into a test SDR data store named "testsdrconfigFlags" by the complementary test program file2sdr(1). The operation of sdr2file echoes the cyclical operation of file2sdr: each linked list created by file2sdr is used to create in the current working directory a copy of file2sdr's original source text file. The name of each file written by sdr2file is file_copy_cycleNbr, where cycleNbr identifies the linked list from which the file's text lines were obtained. sdr2file may catch up with the data ingestion activity of file2sdr, in which case it blocks (taking the file2sdr test semaphore) until the linked list it is currently draining is no longer empty. EXIT STATUS
0 sdr2file has terminated. FILES
No configuration files are needed. ENVIRONMENT
No environment variables apply. DIAGNOSTICS
Can't use sdr. ION system error. Check for diagnostics in the ION log file ion.log. Can't create semaphore. ION system error. Check for diagnostics in the ION log file ion.log. SDR transaction failed. ION system error. Check for diagnostics in the ION log file ion.log. Can't open output file Operating system error. Check errtext, correct problem, and rerun. can't write to output file Operating system error. Check errtext, correct problem, and rerun. BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu> SEE ALSO
file2sdr(1), sdr(3) perl v5.14.2 2012-05-25 SDR2FILE(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

copy syntax

Hi How can i copy the whole content of a directory (containing FILES AND DIRECTORIES) in another... thx (3 Replies)
Discussion started by: tomapam
3 Replies

2. UNIX for Dummies Questions & Answers

Backing Up Directories

Hi Guys, I'm writing a shell script that presents the user with various options, they select one (numbered 1-9) and it then excecutes the correct code. No problem, but I'm having slight difficulty with one option. The user can select to backup all the files in the current directory to another... (2 Replies)
Discussion started by: indigoecho
2 Replies

3. AIX

lost errlog

Hi, i have a problem with mi Aix system, the errlog file is initialized to 0, and i can't write in it, when i run the errpt teh error 0315-180 logread: UNEXPECTED EOF 0315-171 Unable to process the error log file /var/adm/ras/errlog. 0315-132 The supplied error log is not valid:... (2 Replies)
Discussion started by: gonmeres
2 Replies

4. UNIX for Dummies Questions & Answers

Need Help With My First Borne Shell Program

I'm working on writing my very first borne shell program and I need some help. I think I'm pretty close to having this correct but I may be off. I think my actual program is coded correctly but the commands I use within it I think are what's throwing it off? **Purpose of the program: To... (3 Replies)
Discussion started by: FuzzyNips
3 Replies

5. Shell Programming and Scripting

please rectify my problem

Dear Friends, I have two data file containing 4 coloums. my first file has data like this ex: file1: 2.56 66.82 *** 2.56 66.82 *** 2.54 66.84 *** 2.54 66.84 *** 2.51 66.84 *** 2.51 66.84 *** 2.51 ... (8 Replies)
Discussion started by: rajan_ka1
8 Replies

6. UNIX for Dummies Questions & Answers

copy loses the text format

Hi I try to copy part of text from one file to another file. My problem is the text in the new file loses all the format. My code is: #!/bin/sh while red line do if then echo "$line" >> ./new_file else break fi done < "./old_file" Is there a way to modify... (3 Replies)
Discussion started by: tiger99
3 Replies

7. Programming

very bizzare file writing problem

I'm trying to write a function which opens a file pointer and writes one of the function parameters into the file, however for some reason Im getting a core dump error. The code is as below void WriteToFile(char *file_name, char *data) { FILE *fptr; /*disk_name_size is a... (10 Replies)
Discussion started by: JamesGoh
10 Replies

8. Shell Programming and Scripting

Reading data from a specific line in a text file

Hello, I have a problem which is giving me headache for days, can some please help. Please see code and text fiel below. Please see text in red for the problem I am facing # Program gets an input x from user while read line ; do echo... (4 Replies)
Discussion started by: jermaine4ever
4 Replies

9. Programming

[C language] system function print output when not expected.

Hi, I am new to C and have a little problem. I am not planning to be a C expert, but this would be nice to understand. The problem is that a 'system' call prints it output to stdout, when I do not expect this. This is the program: trial.c #include <ctype.h> #include <unistd.h>... (5 Replies)
Discussion started by: ejdv
5 Replies

10. Programming

"execution problem with perl"

hi everyone, before stating my problem , i just want to say thanks in advance for the time and trouble taken:-) i am an newbie to perl programming, the problem is a text file needed to be parsed, i have looked over regular expressions and string matching but coudnt helped out.. the... (4 Replies)
Discussion started by: raghuraipur
4 Replies

11. Shell Programming and Scripting

Shell Script If Else problem!

Hi guys I have this problem... I am supposed to Check if the word i had input, exist in the txt.file And i am having a problem with my codes... cat File.txt | while read TEXT if echo "Found" else echo "Not found!" fi (3 Replies)
Discussion started by: limemargarita
3 Replies

12. Shell Programming and Scripting

Append text error?

Sup guys, today I tried to append a string from my text by asking the user to input and change the specific text they wanna append. The problem is that, the code looks logically correct, but when I run it there's an error somewhere. Can anyone identify for me? echo "Search data" read... (4 Replies)
Discussion started by: aLHaNz
4 Replies

13. UNIX for Dummies Questions & Answers

X Window system - concept

Hi, I am lost in between of some concepts, googling too much made me like this! honestly... please correct my statements below and if they are correct just mention "correct" or also add extra info please: 1. "X Window System" provides basic access to GUI on unix/linux systems This... (3 Replies)
Discussion started by: messi777
3 Replies

14. Shell Programming and Scripting

File modification problem

Hi, I have a file input.txt. cat input.txt output is as follows : I want the output looking like: cat output.txt I have a script. cat input.txt | tr -d '\n' | sed 's/\("name"\)/\1\n/g' > output.txt here I have to check "name" string and then enter newline. But I want the... (10 Replies)
Discussion started by: mnmonu
10 Replies

15. UNIX for Dummies Questions & Answers

Changing text in multiple files, but with different text for each file

Hello, I have a situation where I want to change a line of text in multiple files, but the problem is that I want to change the text to something unique for each file. For example, let's say I have five files named bob.txt, joe.txt, john.txt, tom.txt, and zach.txt. Each of these files has a... (5 Replies)
Discussion started by: Scatterbrain26
5 Replies