02-07-2012
Hey Guys,
That's impressive! It works perfect
I have one more doubt? What if i want to store the option entered and not the string corresponding to the option in the out file?
Thanks in advance.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is it possible to change the color of text in a korn shell script Menu?
I can change the color of session text through my telnet client but I want to be able to change color text in the Korn shell menu to highlight certain items. (6 Replies)
Discussion started by: darthur
6 Replies
2. Shell Programming and Scripting
I am attempting to create a shell script with the following capaciblities:
1. Listed options to choice from
2. Use to perform awk statements
3. Print a report with the awk results
My questions are
1. How do I select more than one file for option #5 and #6
2. How to I create an... (11 Replies)
Discussion started by: jroberson
11 Replies
3. Shell Programming and Scripting
Hi folks,
I have a dual-boot Ubuntu/Windows machine and I wanted to create a script to change the menu.lst file so it will change the default boot partition (this is so I can reload the machine remotely and allow it to boot to the Windows partition).
Today I have to sudo cp a template file I... (1 Reply)
Discussion started by: ppucci
1 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
1) Write a Menu Driven Shell Script which accepts1 to 5 options and performs the following actions for... (1 Reply)
Discussion started by: vaghya
1 Replies
5. Shell Programming and Scripting
hi guys, how would you do the following? I have a menu with 5 options in my shell script:
1. Run function 1 against files
2. Run function 2 against files
3. Run function 3 against files
4. Run function 4 against files
5. Run function 5 against files
I'd like to be able to run multiple... (10 Replies)
Discussion started by: rich@ardz
10 Replies
6. Shell Programming and Scripting
I have tried searching the forum but i haven't found a solution for this.
I have a shell script that presents the users with menus. The menus branch out to sub menus. It is all hunky dory as long as i traverse forward. But if i am in a sub menu and return to the previous menu and choose any... (11 Replies)
Discussion started by: goddevil
11 Replies
7. Shell Programming and Scripting
I'm writing a shell script and have a problem with selection when I issue the command, is there a way to automatically choose a selection number one after a selection menue appear
Command
1-choice
2- choice
3-choice
Thanks
Sara (3 Replies)
Discussion started by: Sara_84
3 Replies
8. Shell Programming and Scripting
Hi All,
I have written a shell script that show menu driven option.
My requirement is that in the menu driven option i want to select multiple choice.
i.e
if i want to select 1 or 1,2 or 1,2,3 or 2,3 etc ....
Can some one help me in that
My script.
while true; do
echo " "
... (8 Replies)
Discussion started by: Nawrajesh
8 Replies
9. Shell Programming and Scripting
I have a menu option which will look as follows
Select a menu option
1.change password
2.login as root user
3.show system version
4.quit
Select> 1
please enter the new password: unix
reenter the new password: unix
press any key to enter
(then displays again the menu options to enter the... (4 Replies)
Discussion started by: shivakumar6g
4 Replies
10. Shell Programming and Scripting
Hi Friends,
I have a menu based tool which requires input/option to proceed further. How to make a shell script ?
eg: menu looks like
Get_data.sh
to continue (y/n) :
Here I need to key in "y" to proceed.
I want to prepare a script which should consider option y. (5 Replies)
Discussion started by: suresh3566
5 Replies
XEV(1) General Commands Manual XEV(1)
NAME
xev - print contents of X events
SYNOPSIS
xev [-display displayname] [-geometry geom] [-bw pixels] [-bs {NotUseful,WhenMapped,Always}] [-id windowid] [-root] [-s] [-name string]
[-rv]
DESCRIPTION
Xev creates a window and then asks the X server to send it events whenever anything happens to the window (such as it being moved, resized,
typed in, clicked in, etc.). You can also attach it to an existing window. It is useful for seeing what causes events to occur and to
display the information that they contain; it is essentially a debugging and development tool, and should not be needed in normal usage.
OPTIONS
-display display
This option specifies the X server to contact.
-geometry geom
This option specifies the size and/or location of the window, if a window is to be created.
-bw pixels
This option specifies the border width for the window.
-bs {NotUseful,WhenMapped,Always}
This option specifies what kind of backing store to give the window. The default is NotUseful. Backing store refers to the the
pixels saved off-screen when the X server maintains the contents of a window; NotUseful means that the xev process will redraw its
contents itself, as necessary.
-id windowid
This option specifies that the window with the given id should be monitored, instead of creating a new window.
-root This option specifies that the root window should be monitored, instead of creating a new window.
-s This option specifies that save-unders should be enabled on the window. Save unders are similar to backing store, but they refer
rather to the saving of pixels off-screen when the current window obscures other windows. Save unders are only advisory, and are
normally set for popup dialogs and other transient windows.
-name string
This option specifies the name to assign to the created window.
-rv This option specifies that the window should be in reverse video.
SEE ALSO
X(7), xwininfo(1), xdpyinfo(1), Xlib Programmers Manual, X Protocol Specification
See X(7) for a full statement of rights and permissions.
AUTHOR
Jim Fulton, MIT X Consortium
X Version 11 xev 1.2.0 XEV(1)