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)
DCPOSN(1) DICOM PS3 - DICOM locate position DCPOSN(1)NAME
dcposn - ACR/NEMA DICOM PS3 ... DICOM PS3 - DICOM locate position
SYNOPSIS
dcposn [ -col|x n ] [ -row|y n ] [ -v|verbose ] [ -filename ]
DESCRIPTION
dcposn reads the named dicom input file and locates the requested image pixel position in 3D space using the attributes of the Image Plane
module (Image Position Patient and Image Orientation Patient) if present.
The spatial position is described as patient (not gantry) relative x, y and z co-ordinates, where x is +ve leftwards, y is +ve anteriorly
and z is +ve cranially.
OPTIONS
The co-ordinates and verbose output go to standard error.
The basic input switches are described in dcintro(1). Options specific to this program are:
-col|x n -row|y n
The specified image pixel position begins from 0 in the top left hand corner of the image.
-verbose
Display byte offset from file start and message start, in hexadecimal, and dump contents while reading and once read.
-filename
Show the name of the file supplied in the arguments; a hyphen will be reported if no filename was supplied.
ENVIRONMENT EXAMPLES
%dcposn -x 0 -y 0 expmeta.dc3
Row=0 Col=0 X=45.0 Y=-119.5 Z=119.5
FILES SEE ALSO dcintro(1)AUTHOR
Copyright (C) 1993-2010. David A. Clunie DBA PixelMed Publishing. All rights reserved.
BUGS
This program really only exists for automated testing of the image plane module.
DICOM PS3 6 March 2007 DCPOSN(1)