Sponsored Content
Top Forums Shell Programming and Scripting Regarding PS1,PS2,PS3,PS4 variables. Post 302164031 by clx on Monday 4th of February 2008 12:56:14 AM
Old 02-04-2008
Regarding PS1,PS2,PS3,PS4 variables.

Hello frnds...

I m asking a general question... thought I never faced and used this (PS3) variable... or may be i m not aware of this...

I know very well about the unix prompt string variables PS1,PS2,PS4.

but please tell me what is the use of PS3 and where it's used.
I didnt find anything satisfactory thing by googling...

thanks,,
Anchal.
 

8 More Discussions You Might Find Interesting

1. HP-UX

Hardware Change 715/33 715/100 HIL - PS2 - XServer didnt start ???

I Need help ! We changed a WS HP 715/33 the new is a HP 715/100 ! The old one supports a HIL keyboard and mouse. The "new" one PS2 keyboard. We changed only the hardware not the harddisk - now the Xserver didnīt start ! What have we to configure thatt the WS supports the PS2 keyboard under... (0 Replies)
Discussion started by: rbrandt1
0 Replies

2. UNIX for Dummies Questions & Answers

how can unset for "PS4"

Hi, how can unset PS="+". i tryed like this: $ unset PS4; but it's not unseting permanently. it's showing oagain when i was login. pls help me on this. (1 Reply)
Discussion started by: koti_rama
1 Replies

3. Shell Programming and Scripting

Need explanation for $PS1, $PS2, $PS3, $PS4

Hi Masters, could you plz. any of you explain what are $PS1, $PS2, $PS3, $PS4. Thanks & Regards Ramesh (6 Replies)
Discussion started by: ramserp
6 Replies

4. Debian

Lost Password to Debian on PS3. Need help or better documentation for recreating a live-cd

About a year and half or so ago me and a friend set up Debian on a PS3. For a while I could not boot into the ps3 but managed to get it running again. I was very excited to get back in a play on the Debian distro we installed until I found neither of us could remember the password he put on it. ... (3 Replies)
Discussion started by: Azrael
3 Replies

5. Shell Programming and Scripting

PS3 and SELECT, is it possible to put a line break?

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)
Discussion started by: newbie_01
3 Replies

6. Shell Programming and Scripting

PS3 select when wrong input given

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)
Discussion started by: ningy
4 Replies

7. Shell Programming and Scripting

Is is possible to pass multiple entries in PS3 select ?

PS3="Enter corresponding number and hit enter:" select DIR in `cat mylist` QUIT do if then echo "INVALID INPUT" else if ; then my commands ..... else break fi fi REPLY='' done The above will return something like below : Select from the list of... (4 Replies)
Discussion started by: ningy
4 Replies

8. Shell Programming and Scripting

ksh PS4 variable assign to `date` output

Hi guys, Is there a way to assign curent time to PS4 variable in ksh. My goal is to have each line produced by 'set -x' command to have a time stamp. Here is my code: $cat test #!/usr/bin/ksh export PS4="`date` " set -x echo "TRACE LINE ONE" echo "I WILL SLEEP FOR 10 SEC" sleep 10... (2 Replies)
Discussion started by: aoussenko
2 Replies
DCTOPNM(1)						DICOM PS3 - DICOM image to PNM file						DCTOPNM(1)

NAME
dctopnm - ACR/NEMA DICOM PS3 ... DICOM PS3 - DICOM image to PNM file SYNOPSIS
dctopnm [ -v|verbose ] [ -quiet|silent ] DESCRIPTION
dctopnm reads the named dicom or acr-nema input file and copies the raw image pixel data to a PNM file after adding a PGM or PPM header. The input file must be unencapsulated, and in the case of > 8 bit data, in the same byte order as desired in the output, since the raw bytes are copied from input to output without any conversion. Use dccp(1) first to change the encoding if necessary. Only the necessary number of bytes to encode the pixel data will be written (based on rows, columns, number of frames, samples per pixel and bits allocated); this means that for an odd number of bytes the extra DICOM padding byte will not be copied to the raw output. This prevents netpbm utilities freaking out with an error "reading magic number" if the padding byte is present. If any of the necessary attributes to calculate the correct pixel data length are missing, all encoded bytes will be written. OPTIONS
The PNM 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
% dcfile big.dc3 Meta: UID 1.2.840.10008.1.2.1 Meta: Description "Explicit VR Little Endian" Meta: ByteOrder Little Meta: VR Explicit Meta: Encapsulated No Data: UID 1.2.840.10008.1.2.2 Data: Description "Explicit VR Big Endian" Data: ByteOrder Big Data: VR Explicit Data: Encapsulated No % dctopnm big.dc3 big.pgm -endian big Rows = 512 Columns = 512 NumberOfFrames = 0 PhotometricInterpretation = MONOCHROME2 SamplesPerPixel = 1 BitsAllocated = 16 BitsStored = 16 HighBit = 15 PixelRepresentation = 1 PlanarConfiguration = 0x0 Rows*Columns*SamplesPerPixel*BitsAllocated/8 = 0x80000 Writing ... FILES
SEE ALSO
dccp(1), pnmtodc(1), rawtodc(1), dctoraw(1), dctopgm8(1), dcintro(1) AUTHOR
Copyright (C) 1993-2012. David A. Clunie DBA PixelMed Publishing. All rights reserved. BUGS
DICOM PS3 13 April 2012 DCTOPNM(1)
All times are GMT -4. The time now is 10:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy