05-08-2009
Shell menus And Oracle
Dear All,
Kindly suggest on how should i proceed with the following requirement
I need to develop an interactive shell script menu which would enable the user to inquire the value of a column based on a key value [i would use "like" in oracle to search]. The output can be more records..
Also is it possible to do the following
1) format the output of the query to display the values like
--------------------------------------------
key1 This is the description column i'm trying
to search1
key2 This is the description column i'm trying
to search2
key3 This is the description column i'm trying
to search3
--------------------------------------------
2) is it possible to have some thing similar to the header where in i have some options for the user to choose and the body section where in the output is displayed in the above format
Kindly clarify. Any inputs regarding this will be highly useful
Thanks
~S
6 More Discussions You Might Find Interesting
1. Programming
hello there,
i'm exploring the curses lib and i'm having some trouble with "defining a style". to clarify: i'm creating a menu driven app and i've been thinking what's the best way to use menus: make global vars (not my favourite), creating a function which designs the menu and returns the... (2 Replies)
Discussion started by: crashnburn
2 Replies
2. Shell Programming and Scripting
Greetings all,
I'm currently writing a shell script menu which is dynamically populated from an array. Have a question to ask about the filtering of invalid input. I'm using KSH.
A brief description of my algorithm is as follows:
1) Read in input from user and store in a variable. (a valid... (2 Replies)
Discussion started by: rockysfr
2 Replies
3. UNIX for Dummies Questions & Answers
I'm very new to Unix and know the simplest of its commands. I am trying to write a script file that has a menu with the following options showing:
1) Display all files in a user's home directory.
2) Welcome yourself to the program
3) Display System Information
4) Exit to Windows
I am able... (6 Replies)
Discussion started by: sinjin
6 Replies
4. Shell Programming and Scripting
Hey Guys.
I need to code a series of menus that have four options, selectable either by the number in the menu or the name, in succession. This part I have achieved however I am struggling to find a way that should the user try to enter an invalid selection, such as the number 5 or an incorrect... (5 Replies)
Discussion started by: Mudja
5 Replies
5. AIX
Hello,
I am new to AIX...
I am having this problem trying to re-install AIX 5L 5.2 on a blade (JS20)
Then update it to 5.3
This blade now has 5.3 and needs to be re-install
But the problem is when I press 1 while it is restarting....
I see the message: SMS menus are not supported on... (4 Replies)
Discussion started by: mifch
4 Replies
6. Shell Programming and Scripting
I currently have a main menu (using whiptail) and one of the options makes an instance of another menu - sort of cascading fashion.
I like to be able to terminate the current (top) menu and return to the underlying main one.
I was thinking enclosing the main menu in "do... done" block.
... (0 Replies)
Discussion started by: annacreek
0 Replies
LEARN ABOUT SUSE
funindex
funindex(1) SAORD Documentation funindex(1)
NAME
funindex - create an index for a column of a FITS binary table
SYNOPSIS
funindex <switches> <iname> [oname]
OPTIONS
NB: these options are not compatible with Funtools processing. Please
use the defaults instead.
-c # compress output using gzip"
-a # ASCII output, ignore -c (default: FITS table)"
-f # FITS table output (default: FITS table)"
-l # long output, i.e. with key value(s) (default: long)"
-s # short output, i.e. no key value(s) (default: long)"
DESCRIPTION
The funindex script creates an index for the specified column (key) by running funtable -s (sort) and then saving the column value and the
record number for each sorted row. This index will be used automatically
by funtools filtering of that column, provided the index file's modification date is later than that of the data file.
The first required argument is the name of the FITS binary table to index. Please note that text files cannot be indexed at this time. The
second required argument is the column (key) name to index. While multiple keys can be specified in principle, the funtools index process-
ing assume a single key and will not recognize files containing multiple keys.
By default, the output index file name is [root]_[key].idx, where [root] is the root of the input file. Funtools looks for this specific
file name when deciding whether to use an index for faster filtering. Therefore, the optional third argument (output file name) should not
be used for funtools processing.
For example, to create an index on column Y for a given FITS file, use:
funindex foo.fits Y
This will generate an index named foo_y.idx, which will be used by funtools for filters involving the Y column.
SEE ALSO
See funtools(7) for a list of Funtools help pages
version 1.4.2 January 2, 2008 funindex(1)