Sponsored Content
Full Discussion: Menu Base AIX Script
Top Forums Shell Programming and Scripting Menu Base AIX Script Post 302289574 by dwiravi on Friday 20th of February 2009 01:18:02 AM
Old 02-20-2009
Java Menu Base AIX Script

Hi,
I am trying to create a menu on AIX systen for operators in our office.
Please suggest how can I loop back to menu by pressing any key from a online running file. For example I can view the Database alert log file by tail -f command but how should I loop back to menu again. If I press <ctrl C> ,the log file is closed and I found myself at login prompt. I want to get back to my menu. I have provided "quit" option to at every menu to get back to login prompt.

Please advise as I am stuck on it since long.

Thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

script for nums in Hexadecimal base

Hi: I´ve developed a script that count in decimal base. this is a example: ini=0 end=0 ini=$1 end=`expr $2+1` i=$ini while do .. .. i=`expr $i+1` done Could you say me how dou you count in hexadecimal base? Thanks (1 Reply)
Discussion started by: AlvaroD
1 Replies

2. AIX

I can't install Ifor_ls.compat, Ifor_ls.base in pSeries AIX DEMOpkg 2005

Hi there, I need to install the IBM C++ Compiler in pSeries AIX DEMOpkg 2005 but I can't find Ifor_ls Ifor_ls.html.en_US Ifor_ls.ipf.en_US Ifor_ls.compat Ifor_ls.base Have you got the experience about that? Thank you very much. Thang. (0 Replies)
Discussion started by: pvthang43
0 Replies

3. What is on Your Mind?

AIX Smit menu designer. WinSmit

Hi, Please excuse me for posting an "ad" message here. Over the last few months I have created software called WinSmit, with this tool you can create your own AIX smit menus and corresponding message files. We all know the smit or smitty menus that IBM provides to maintain the system, the... (6 Replies)
Discussion started by: mimyrtek
6 Replies

4. AIX

Menu base AIX script

Hi, I am trying to create a menu on AIX systen for operators in our office. Please suggest how can I loop back to menu by pressing any key from a online running file. For example I can view the Database alert log file by tail -f command but how should I loop back to menu again. If I press <ctrl... (1 Reply)
Discussion started by: dwiravi
1 Replies

5. AIX

How big is AIX installed base (i.e. number of deployed systems)?

Hi, Just wondered if anyone knows the approximate size of the AIX installed base, i.e. number of machines running out there. I'm expecting a figure of less than a million. There seems to be a lack of info on the web. Presumably only IBM know for sure! (3 Replies)
Discussion started by: garethr
3 Replies

6. AIX

modcrypt.base fileset on Aix 5.3

Hi, Looking for some help downloading the modcrypt.base fileset Checking on google I think modcrypt.base is part of the Aix 5.3 expansion pack Cryptographic Library V5.2 and 5.3. I have downloaded this and it doesn't appear to have the modcrypt.base fileset in. In the same expansion... (1 Reply)
Discussion started by: elmesy
1 Replies

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

8. AIX

AIX base OS install

Hello, I'm trying to install AIX 7.1 on a machine. Unfortunately I forgot to load volume 2 DVD, but the server works fine. Was wondering, what all the contents will be in volume 2? And I tried loading it after the complete reboot but the blade is not recognizing the volume2 DVD. Please let... (6 Replies)
Discussion started by: pjeedu2247
6 Replies

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

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
MENU_ITEMS(3)						   BSD Library Functions Manual 					     MENU_ITEMS(3)

NAME
item_count, menu_items, set_menu_items -- attach items to menus or check correspondences LIBRARY
Curses Menu Library (libmenu, -lmenu) SYNOPSIS
#include <menu.h> int item_count(MENU *menu); ITEMS ** menu_items(MENU *menu); int set_menu_items(MENU *menu, ITEM **items); DESCRIPTION
The item_count() menu function returns the number of items currently attached to the menu passed. The menu_items() function returns a pointer to an array of item pointers that represent the menu items currently attached to the given menu. Apart from using new_menu() (see menu_new(3)) menu items may be attached to a menu by calling set_menu_items() any items currently attached to the menu will be detached and the NULL terminated array of new items will be attached to the menu. RETURN VALUES
Any function returning a string pointer will return NULL if an error occurs. Functions returning an integer will return one of the follow- ing: E_OK The function was successful. E_POSTED The menu is already posted. E_CONNECTED An item was already connected to a menu. SEE ALSO
curses(3), menus(3) NOTES
The header <menu.h> automatically includes both <curses.h> and <eti.h>. BSD
September 10, 1999 BSD
All times are GMT -4. The time now is 09:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy