Sponsored Content
Top Forums UNIX for Dummies Questions & Answers proceed through a menu-based program with a script? Post 302240239 by sysgate on Thursday 25th of September 2008 08:37:54 AM
Old 09-25-2008
Combine them in functions, thus, when you type diskSpace, the script will execute diskSpace() function.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Menu program

I am tasked with creating a front end 'menu' program where the users will type '1' to do this command or '2' to do that command. I have found some stuff that I can copy to do that but it looks too flimsy to roll out in a production envirionment. I was wondering if you guys might know of a more... (4 Replies)
Discussion started by: hedrict
4 Replies

2. UNIX for Dummies Questions & Answers

Script to open program and send/execute command in program

Hi, i want to write a script that executes a program (exec?) . this program then requires a filename as input. how do i give it this input in the script so the program will be complete run and close by the script. e.g. exec prog.exe program then asks for filename "enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies

3. 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

4. Programming

C program - convert values based on the position

Hey! I'm new to C. I need to covert certain values using C. please see the below. I have figured out the logic to do it. Please provide some hints to do this with C Logic: If first position of POS = 0, shift POS to the left one byte. If third position of POS = 0, move spaces to third... (1 Reply)
Discussion started by: rocker_me2002
1 Replies

5. Shell Programming and Scripting

Program based on hostname

Hi Can you help me get the script for below requirement. when i run below script ./script QM hostname script should be working in below here inputs are QM and hostname by taking inputs it should work like below QM=$1 if QM name ends with 1 $4 should be 51431 ends with ... (4 Replies)
Discussion started by: darling
4 Replies

6. Shell Programming and Scripting

How to include menu based options in Shell script?

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

7. Shell Programming and Scripting

Script to Proceed to the Next IP if the current IP hangs

Hi there, Say I have a list of IPs, I am running scripts on them. If the process hang. I want to continue with the rest of the IPs. 10.11.1.1 10.11.1.2 10.11.1.3 10.11.1.4 10.11.1.5 10.11.1.6 <-- Process Hangs here 10.11.1.7 10.11.1.8 10.11.1.9 10.11.1.10 10.11.1.11 10.11.1.12 ... (11 Replies)
Discussion started by: alvinoo
11 Replies

8. Shell Programming and Scripting

Creating bash script to process a data file based on the menu

Hey, im fairly new to unix and Im trying to make this unix project that would display a menu and do the following. MENU =========================== (p, P) Print users info (a, A) Add new user (s, S) Search user (d, D) Delete user (x,X) Exit Enter your choice: Trying to... (3 Replies)
Discussion started by: ultimaxtrd
3 Replies

9. Programming

I'm implementing menu config based on curses terminal

I'm implementing menu config based on curses terminal. for example: $ xmake --menu It automatically gets the options in the project to generate the menu configuration interface to implement the interactive configuration, like make menuconfig based Kconfig example: $ git clone... (0 Replies)
Discussion started by: waruqi
0 Replies

10. 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
classes(3U)						    InterViews Reference Manual 					       classes(3U)

NAME
classes - unique identifiers for catalog-managed objects and component views SYNOPSIS
#include <Unidraw/classes.h> DESCRIPTION
Classes for catalog-managed objects, including components, commands, tools, state variables, and transfer functions, must be associated with mutually-unique class identifiers that can be written onto disk. This allows a creator object to call the appropriate constructor as part of recreating an object from disk. Also, there must be a mechanism for creating an appropriate view given a subject; that is, there must be an association between a subject class and allowable view classes for that subject. This association is established by defining class identifiers for component views. These identifiers are formed by concatenating the identifier for a given component subject class with an identifier that specifies a ``view category.'' For example, the class identifier for the PostScript external view of a line component is the concatenation of the identifier for the line component subject class and POSTSCRIPT_VIEW identifier, which specifies the category of external views for generating Post- Script. This makes it possible to create an instance of the appropriate PostScript external view subclass given a line component subject. The class identifiers for the Unidraw base and predefined derived classes are specified in the classes.h include file. Applications that define new catalog-managed objects or component views should define unique class identifiers in a similar manner. Class identifiers for catalog-managed objects are simply integers with mnemonic macro definitions, usually the class name in all-uppercase. For example, the identifier for the LineComp component subject class is #define LINE_COMP 9030 View class identifiers are specified using the Combine macro, which takes as its first argument the macro definition of the corresponding component subject identifier; its second argument is an identifier for the view category. The Combine macro itself is then defined with a mnemonic name. For example, the identifier for the PostScript external view class PSLine (which generates PostScript for the line compo- nent subject) is defined as #define PS_LINE Combine(LINE_COMP, POSTSCRIPT_VIEW) where the POSTSCRIPT_VIEW view category identifier is defined as #define POSTSCRIPT_VIEW 9103 N.B.: All class identifiers in a given application must be unique. SEE ALSO
Catalog(3U), Creator(3U) Unidraw 12 June 1990 classes(3U)
All times are GMT -4. The time now is 07:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy