Sponsored Content
Full Discussion: To operate MENU via script
Top Forums Shell Programming and Scripting To operate MENU via script Post 302220740 by ashokm on Friday 1st of August 2008 12:57:30 PM
Old 08-01-2008
To operate MENU via script

Hi,

I run this utility very frequently. This utility displays some 5 options and again inturn these options have few more option to select.
For Eg : It looks like this

1. User Control
2. Locking and Waiting Statistics
3. Block Access
4. Record Locking Table
5. Activity
Enter your selection:

How do I paas the number through the script.

I need to write a script to select the options that I am interested in and write the output to a file.

Help me pls!!!

Thanks ,
Ashok Kumar M
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl: Getting $ARGV's to operate like while(<>)

I have a script that asks a bunch of questions using the following method for input: print "Name:"; while(<>){ chomp; $name=$_; } So for example, if the questions asked for name, age, & color (in that order)... I want to be able to easily convert $ARGV into the input expected by... (2 Replies)
Discussion started by: jjinno
2 Replies

2. Shell Programming and Scripting

Menu in Menu script issue

Problem: I am trying to create a menu in a menu script and I am running into an issue with the calculator portion of the script. I am first presented with the ==Options Menu== which all 5 options working correctly. Now comes the fun part. I select option 1 which takes me to my ==Calculator... (1 Reply)
Discussion started by: iDdraig
1 Replies

3. Shell Programming and Scripting

Need help in create menu with 3 sub menu using the case command

hi all i am a newbie to this is there any examples on creating a main menu with 3 sub menu main menu -> option a , b and c a menu -> option 1 ,2 and 3 b menu -> option 1 ,2 c menu -> option 1 ,2 i am getting headache as my code kept getting unexpected EOF ---------- Post... (0 Replies)
Discussion started by: chercm
0 Replies

4. Shell Programming and Scripting

Script to call a menu script and redirect each option to a text file

Hello, I want to design a script that will call an existing menu script and select options one by one and redirict the out put to a file. For example;- In the script MENU.sh there are 10 options i want to design a script MENU2.sh that will select option 2 3 4 6 7 10 and redirict the output... (4 Replies)
Discussion started by: spradha
4 Replies

5. Shell Programming and Scripting

Script to access multiple file and operate on single file

We have three files as mentioned below: 1. main_file.txt: This is the file in which all operations will be done. Which means this file will be signed by using the below two files 2. signature_file.txt: This is a status file and contains two signatures. 3. command.txt:file contains two commands... (2 Replies)
Discussion started by: chetanojha
2 Replies

6. UNIX for Beginners Questions & Answers

Gnome 3.28.3 menu item dissapears under the system menu

I installed CentOS 8 with Gnome 3.28.2 and I noticed that the "switch user" menu item disappeared from under the system menu of Gnome classic (Both X11 & Wayland). I checked google and this problem seems to have a history going back several releases of Gnome. Unfortunately, I never found a... (1 Reply)
Discussion started by: bodisha
1 Replies
LSREALM(1p)						User Contributed Perl Documentation					       LSREALM(1p)

NAME
lsrealm - List the realms in a DNSSEC-Tools realm file SYNOPSIS
lsrealm [options] <realm-files> DESCRIPTION
This script lists the contents of the specified realm files. All realm files are loaded before the output is displayed. If any realms have duplicated names, whether within one file or across multiple files, the later realm will be the one whose data are displayed. The output displayed for each realm in a realm file depends on the selected records, the selected attributes, and the selected output format. Each option in these option groups is described in detail in the next section. The three base output formats are described here. The -terse option indicates that a minimal amount of output is desired; the -long option indicates that a great deal of output is desired. The record-selection and attribute-selection options may be used in conjunction with -terse to display exactly the set of realm fields needed. The default output format is that used when neither -terse nor -long is given, and is a middle ground between terse and long output. The table below shows the fields displayed for each output format. realm field default terse long ------------- ------- ----- ---- realm name yes yes yes state yes no yes config directory no no yes realm directory no no yes rollrec file no no yes administrator no no yes directory no no yes display flag no no yes manager no no yes manager arguments no no yes user no no yes OPTIONS
There are three types of options recognized by lsrealm: record-selection options, attribute-selection options, and output-format options. Each type is described in the subsections below. Record-selection Options These options select the records that will be displayed by lsrealm. By default, all records will be displayed; selecting one or the other of these options will restrict the records shown. These options are mutually exclusive. -active List all active records in the realm file. -inactive List all inactive records in the realm file. Attribute-selection Options These options select the attributes of the records that will be displayed by lsrealm. -admin The record's administrator value is included in the output. If an administrator value is not included in a realm, then the value "(defadmin)" will be given. -args The record's user-defined arguments for the realm's rollover manager. -configdir The record's configuration directory is included in the output. This value will be the filename only, unless the -fullpaths option is given. In that case, the full pathname will be printed. -display The record's display flag, used by grandvizier is included in the output. -manager The record's manager field, indicating which rollover manager is used for the realm.. The default is rollerd, but individual installations may use other managers. -realmdir The record's realm directory is included in the output. This value will be the filename only, unless the -fullpaths option is given. In that case, the full pathname will be printed. -rollrec The record's rollrec file is included in the output. This value will be the filename only, unless the -fullpaths option is given. In that case, the full pathname will be printed. -state Include each realm record's state in the output. The state will be either "active" or "inactive". This field is part of the default output. -user The record's user field, which is the user the realm's manager will be executed with. This field is not yet implemented. Output-format Options These options select the type of output that will be given by lsrealm. -count Only a count of matching realms in the realm file is given. -fullpaths Display pathname data as the full pathname given in the realm file. If this option is not specified, only the filename itself will be displayed. -headers Display explanatory column headers. -terse Terse output is given. Only the record name and any other fields specifically selected are included in the output. -long Long output is given. All record fields are included. -help Display a usage message. -Version Displays the version information for lsrealm and the DNSSEC-Tools package. COPYRIGHT
Copyright 2012 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details. AUTHOR
Wayne Morrison, tewok@tislabs.com SEE ALSO
dtrealms(8), grandvizier(8), realminit(8) Net::DNS::SEC::Tools::realm.pm(3) file-realm(5) perl v5.14.2 2012-06-21 LSREALM(1p)
All times are GMT -4. The time now is 07:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy