9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am looking for a way to start a script and have it prompt for a password that will be used later on in the script to SSH to another host and to SFTP. I don't want the password to be hard coded. Below is my script with the actual IP's and usernames removed.
#!/usr/bin/expect -f... (2 Replies)
Discussion started by: jbrass
2 Replies
2. Shell Programming and Scripting
The below code works great if the user inputs a single value. The sed command applies the NM_ with the user input it is saved to a file. However, if two values are entered the below does not work. Can both values be saved at the same time if they are entered in windows format? Thank you :).
... (6 Replies)
Discussion started by: cmccabe
6 Replies
3. Shell Programming and Scripting
I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below:
Core Utilization
CoreId %Usr %Sys %Total
------ ----- ----- ------
5 4.91 0.01 4.92
6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies
4. Shell Programming and Scripting
I am having a little trouble with some things using the code below:
1. printf "Enter variant: "; read variant The user enters the variant and that value is used in the python script. However, I am not sure how to save that value inputed as a text file in a specific directory... (8 Replies)
Discussion started by: cmccabe
8 Replies
5. Shell Programming and Scripting
Hi friends,
I am pretty new to shell scripting, please help me in this Scenario.
for example, If I have one file called input.txt
once I run the script,
1.It has to delete the old input.txt and create the new input.txt (if old input.txt is not there, no offence, just it has to create a... (2 Replies)
Discussion started by: Padmanabhan
2 Replies
6. Shell Programming and Scripting
Hi Guys,
I have blank file A.txt
I will run the script xyz.sh
First i want to open a.txt file...
Now i will enter some data like
XYZ
ABC
PQR
..
Save it and keep continue my script....
END of my script.
Thanks (1 Reply)
Discussion started by: asavaliya
1 Replies
7. Shell Programming and Scripting
Hi,
i have 2 input files which are file1.txt and file2.txt. I need to extract data from file1.txt and file2.txt and save it in file3.txt like example below:-
File1.txt
ID scrap1
Name scrap1
start 1
end 10
ID scrap2
Name scrap2
start 11
end ... (4 Replies)
Discussion started by: redse171
4 Replies
8. Solaris
I have a question here about the OS logs (/var/adm/messages) where it should write most alarms.
I ran a hardware test by showing the Power Supply redundancy. Removing PS0 while PS1 is still plugged in confirms that the system still operates with no problems. However, when it comes to logging, I... (1 Reply)
Discussion started by: gilberteu
1 Replies
9. Solaris
Dear Frnz,
i have a ultra 45 with solaris 10 installed.
I face a weird issue in that.
once the machine goes to power save mode i am not able to bring the machine back by hitting the keys in keyboard or moving the mouse.
I am able to rsh the machine from another machine.
To bring the... (1 Reply)
Discussion started by: sriram.s
1 Replies
glutGameModeGet(3GLUT) GLUT glutGameModeGet(3GLUT)
NAME
glutGameModeGet - retrieves GLUT device information represented by integers.
SYNTAX
int glutGameModeGet(GLenum info);
ARGUMENTS
info Name of game mode information to retrieve.
GLUT_GAME_MODE_ACTIVE
Non-zero if GLUT's game mode is active; zero if not active. Game mode is not active initially. Game mode becomes active when glu-
tEnterGameMode is called. Game mode becomes inactive when glutLeaveGameMode is called.
GLUT_GAME_MODE_POSSIBLE
Non-zero if the game mode string last specified to glutGameModeString is a possible game mode configuration; zero otherwise. Being
"possible" does not guarantee that if game mode is entered with glutEnterGameMode that the display settings will actually changed.
GLUT_GAME_MODE_DISPLAY_CHANGED should be called once game mode is entered to determine if the display mode is actually changed.
GLUT_GAME_MODE_WIDTH
Width in pixels of the screen when game mode is activated.
GLUT_GAME_MODE_HEIGHT
Height in pixels of the screen when game mode is activated.
GLUT_GAME_MODE_PIXEL_DEPTH
Pixel depth of the screen when game mode is activiated.
GLUT_GAME_MODE_REFRESH_RATE
Screen refresh rate in cyles per second (hertz) when game mode is activated. Zero is returned if the refresh rate is unknown or
cannot be queried.
GLUT_GAME_MODE_DISPLAY_CHANGED
Non-zero if entering game mode actually changed the display settings. If the game mode string is not possible or the display mode
could not be changed for any other reason, zero is returned.
DESCRIPTION
glutGameModeGet retrieves GLUT game mode information represented by integers. The info parameter determines what type of game mode informa-
tion to return. Requesting game mode information for an invalid GLUT game mode information name returns negative one.
SEE ALSO
glutGet, glutDeviceGet, glutLayerGet, glutGameModeString, glutEnterGameMode, glutLeaveGameMode
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT
3.7 glutGameModeGet(3GLUT)