Sponsored Content
Full Discussion: code help
Top Forums Programming code help Post 29845 by bb00y on Saturday 12th of October 2002 03:33:15 AM
Old 10-12-2002
sorry. everytime i run this code, enter an option, the menu of options always display twice before i could choose the option again. for some reason, the first time through it doesn't let me enter an option, like it totally disregard the getchar() statement. it go to the dafault case, and start over the loop, and then it let me enter an option.
 

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Return code from PL/SQL Code

Hi Guys, I was just wondering if anybody can help me with this problem. OK, how we can get a value back from PL/SQL Script (not stored procedure/function) See the below example: (for example aaa.sh) #!/bin/ksh VALUE=`sqlplus -s user/password@test_id <<EOF @xxx.sq EOF` echo $VALUE ... (7 Replies)
Discussion started by: Shaz
7 Replies

2. Programming

how i prepare a c++ code(c code) for implementing my own protocol format

helo my protocol format is given below { destno,mode,no.of packet,pktsize,,pktno,textsize,CRC} description:- { is starting flag destno - 4bytes mode - 1 byte no.of pkt - 4byes pktsize - 6 bytes ... (1 Reply)
Discussion started by: amitpansuria
1 Replies

3. Shell Programming and Scripting

translate ksh code to csh code

hi all, Can any 1 help me translate this korn shell code to C shell code : email=$(grep "^$1" $folder/config_2.txt | awk '{print $2'}) In config_2.txt the content is : which mean in korn shell , $1=groupname and $2=email address. Now i need to write in C shell script,when i set the... (2 Replies)
Discussion started by: proghack
2 Replies

4. UNIX for Dummies Questions & Answers

If ‘922’ Code does not exist on ‘03’ Record, ‘901’ Code will be there instead, move ‘03’ R

01,011600033,011600033,110516,0834,2,90,,2/ 02,011600033,011103093,1,110317,0834,,2/ 03,105581,,015,+00000416418,,,901,+00000000148,,,922,+000000 00354,,/ 03,113806,,015,+00000559618,,,901,+00000000096,,,922,+000000 00621,,/ 88,902,+0000000025218,,/... (1 Reply)
Discussion started by: sgoud
1 Replies

5. Shell Programming and Scripting

Block of code replacement in Java source code through Unix script

Hi, I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory. finally { if (null != hibernateSession && hibernateSession.isOpen()) { //hibernateSession.close(); } } It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies

6. Linux

Go to a line of code , skip few lines of code

Hi , I have a code where i am using a infinite while loop . some thing like below while do if then #go to line 20 fi command 1; command 2; #line 20: sleep 34; (5 Replies)
Discussion started by: Paarth
5 Replies
dxpause(1X)															       dxpause(1X)

NAME
dxpause - locks (pauses) an X display SYNOPSIS
dxpause [-autopause] [-time n] [-wait] OPTIONS
If the -autopause option is set, when the display is unlocked, dxpause does not exit but instead becomes an icon. In this case, dxpause automatically locks the display when the X server goes into screensaver mode if the X Screensaver extension is present in the X server. De-iconifying dxpause also causes the display to be locked. The -time option only has meaning if the -autopause option is also set. The -time n option sets the autolock timeout period to n minutes. The default period is whatever the X server's screensaver timeout is set to, and the latter defaults to 5 minutes. The -wait option only has meaning if the -autopause option is also set, and causes dxpause to start in the iconified state rather than immediately locking the display. Without any of these options set, dxpause locks the display immediately when invoked and exits when the display is unlocked. DESCRIPTION
The dxpause program must be invoked explicitly by users (typically those running the generic X display manager rather than CDE). The dxpause program places a blank screen over the workstation screen and displays a dialog box that prompts for the password of the person whose session was paused. When you enter the correct password, the blank screen is removed and the session resumes. In the file, the following resources are used by the dxpause program: The first name for lines that apply only to the Pause task should be labeled DXpause. When this resource is True, dxpause executes an XGrabServer library call, thereby inhibiting all processing of requests or close downs on any other connection. Although this action absolutely insures that no information is displayed "through" the pause screen, it also effectively suspends other tasks that need to output information to their windows. When this resource is False, the pro- tective pause screen is raised to the top of the display stack 20 times per second, thus re-covering any other window that might have been displayed. Tasks that need to output to their own windows will not be suspended. The default is False. When this resource is True, dxpause behaves as if it were run with the -autopause option. See the OPTIONS section, above. The default is False. When this resource is set to a numeric value n, dxpause behaves as if it were run with the -time n option. See the OPTIONS section, above. This resource only has meaning if the autoPause resource is set, or if dxpause is started with the -autopause option. The value n defaults to whatever the X server's screensaver timeout is set to, and the latter defaults to 5 minutes. When this resource is True, dxpause behaves as if it were run with the -wait option. See the OPTIONS section, above. This resource only has meaning if the autoPause resource is set, or if dxpause is started with the -autopause option. The default is False. FILES
SEE ALSO
X(1X) dxpause(1X)
All times are GMT -4. The time now is 12:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy