Hi
I want to read messages from multiple interfaces using one select() statement. Does anybody knows if I can specify multiple fds in the *readfds parameter? If yes, what's the max num of fds?
Something like the following:
fd_set descrSet = {0};
int retVal;
MyStructS *msg = NULL;
... (1 Reply)
Hello all,
I'm developing a deployment script at work and at one point it would need to display something like this:
Which version of ADMIN would you like to deploy?
1) 1.0.0 (store1, 10 Jan 2004)
2) 1.0.1 (store1, 20 Jun 2004)
3) 1.0.2 (store1, 15 Jul 2004)
Select a version :
I know... (5 Replies)
How do I create a script that provides a count of distinct values of a particular field in a file utilizing commonly available UNIX commands (sh or awk)?
Field1|Field2|Field3|Field4
AAA|BBB|CCC|DDD
111|222|333|777
AAA|EEE|ZZZ|EEE
111|555|333|444
AAA|EEE|CCC|DDD
111|222|555|444
For... (2 Replies)
Hi all,
Before I give up on using SELECT for my first attempt at creating a menu driven script, can anyone please advise if it is possible to include a line break for PS3, I've tried putting in a \n and it does not work.
Tried for both bash and ksh and both gives the same result. Preference... (3 Replies)
Hi All
I am using the below code to chose a file to view :
PS3="Select file to view : "
select FILE in `ls` QUIT
do
if ; then
clear
cat $FILE
else
break
fi
REPLY=''
done
Everything works fine as long as I am giving the correct choice .
But when i give a... (4 Replies)
I copied the below program to play around with displaying a list of items using the select command in ksh. When I put all items in the same line, it works fine. I am trying to use multiple lines instead of a single row...my list is too large for a single line. How do I get the line continuation... (3 Replies)
I have about 6000 files of the following format (three simplified examples shown; actual files have variable numbers of columns, but the same number of lines). I would like to concatenate the ID (*Loc*) and data lines, but not the others, as shown below. The result would be one large file (or... (3 Replies)
Hello,
I'm attempting to open multiple xterms and run a command as an SAP user via sudo using PSSH. So far, I'm able to run PSSH to a file of servers with no check for keys, open every xterm in to the servers in the file list, and SUDO to the SAP(ADM) user, but it won't do anything else... (11 Replies)
DCTOPGX(1) DICOM PS3 - DICOM image to PGX file DCTOPGX(1)NAME
dctopgx - ACR/NEMA DICOM PS3 ... DICOM PS3 - DICOM image to PGX file
SYNOPSIS
dctopgx [ -v|verbose ] [ -quiet|silent ]
DESCRIPTION
dctopgx reads the named dicom or acr-nema input file and copies the raw image pixel data to a PGX file as used for the JPEG 2000 Verifica-
tion Model.
A PGX file contains of a single text header line of the form "PG <byte order> [+|-]<bit-depth> <cols> <rows> immediately by the raw binary
data. There may be 1, 2 or 4 bytes per sample corresponding to bit depths from 1 to 32. Byte order is "LM" (little endian) or "ML" (big
endian). The signed or unsigned pixel representation is indicated by '+' or '-' character before the bit depth. If the '+' is omitted,
unsigned is implied.
The input file must be unencapsulated.
PGX supports big or little endian byte order in the case of > 8 bit data. The output byte order is always in the same as the input, since
the raw bytes are copied from input to output without any conversion. Use dccp(1) first to change the encoding if necessary.
PGX also supports signed data, so the Pixel Representation of the input is used to specify whether the output is signed or unsigned.
OPTIONS
The PGX output goes where it is specified or standard out. The verbose output goes to standard error.
The basic input switches are described in dcintro(1). Options specific to this program are:
-quiet|silent
Suppress the normal description of image parameters.
-verbose
Display byte offset from file start and message start, in hexadecimal, and dump contents while reading, once read, during replace-
ment, and before writing.
ENVIRONMENT EXAMPLES FILES SEE ALSO dccp(1), pnmtodc(1), dctopnm(1), rawtodc(1), dctoraw(1), dcintro(1)AUTHOR
Copyright (C) 1993-2010. David A. Clunie DBA PixelMed Publishing. All rights reserved.
BUGS DICOM PS3 04 March 1999 DCTOPGX(1)