using fmli to create menu's


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users using fmli to create menu's
Prev   Next
# 1  
Old 10-06-2006
using fmli to create menu's

I am currently having a problem creating a dynamic Menu that reads in from a file and appends this Menu list with an exit menu item.

the syntax I am using to create the dynamic Menu is

menu="$ARG1 Host names"

`cat Hosts.data | regex '^(''.*)$0$' '
name="$m0"
action=open Menu.Login.mnu $ARG1 $m0

1) This created a menu that had 3 columns, I only wanted 1 column
2) I tried to add an Exit Menu item to the list but it creates one after each Menu list. e.g.

host1
exit
host2
exit
host3
exit
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

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

2. Solaris

Need to create a menu.lst for Solaris 11 Express, OpenSUSE 11.3 & Windows Vista

I have partitioned and installed Windows Vista, OpenSUSE and Solaris 11 Express on a LapTop hardDrive. However I am not able to boot OpenSUSE 11.3 although I have it in menu.lst which I put in a Solaris partition directory /rpool/boot/grub. Could someone tell me how to go about it. See what I did... (2 Replies)
Discussion started by: Tenyhwa
2 Replies

3. UNIX for Dummies Questions & Answers

How Do I Create A Multi Line Menu Variable?

I want something that would show up basically like: Menu ----- 1) Option 1 2) Option 2 3) Option 3 Pick one: I tried menu = " Menu \r\n ----- \r\n 1)Option 1 \r\n..............etc etc etc" but that didnt work (just got the whole menu one one line, with the... (2 Replies)
Discussion started by: SoVi3t
2 Replies

4. Shell Programming and Scripting

Can someone show me how to create a menu?

Can someone show me how to create a menu? I want a script someone who is not unix literate can use, with some simple commands like ls -al a directory or find files based on a date, does anyone know how to make a simple menu ? Thanks. (4 Replies)
Discussion started by: taekwondo
4 Replies

5. Programming

FMLI on Suse

Anyone knows a FMLI package for Suse? I have bunch of screens, menu and lists on FMLI and, as much as I know, There is no FMLI facility on Suse. Any better suggestion than converting all of them in Shell script? :confused: (2 Replies)
Discussion started by: Marcos Brito
2 Replies

6. Shell Programming and Scripting

fmli functions?

Hi all I am trying to create a Form that takes a user entered Directory name and if the Directory does not exist then I create it. I have managed to set the descriptor done=`mkdir "$F1";update` to make the directory but really require the form done to run a function that will have the steps; ... (0 Replies)
Discussion started by: craigmckeeman
0 Replies

7. Shell Programming and Scripting

using fmli to create menu's

I am currently having a problem creating a dynamic Menu that reads in from a file and appends this Menu list with an exit menu item. the syntax I am using to create the dynamic Menu is menu="$ARG1 Host names" `cat Hosts.data | regex '^(''.*)$0$' ' name="$m0" action=open... (2 Replies)
Discussion started by: craigmckeeman
2 Replies

8. Shell Programming and Scripting

Fmli Signal/trap

Does anyone know how to program signals in fmli? My fmli script goes in loop when the telnet session is closed. When I start the script from the prompt the issue do not happen. But when it is started by the login process it hags. That's why I want to program the SIGHUP to exit/finish the script.... (0 Replies)
Discussion started by: Marcos Brito
0 Replies

9. Shell Programming and Scripting

using CD command in fmli

I was not able to use "cd" command in fmli....can anyone help ? (1 Reply)
Discussion started by: Claude
1 Replies
Login or Register to Ask a Question
Gtk2::Menu(3)						User Contributed Perl Documentation					     Gtk2::Menu(3)

NAME
Gtk2::Menu HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::MenuShell +----Gtk2::Menu INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable METHODS
widget = Gtk2::Menu->new accelgroup = $menu->get_accel_group $menu->set_accel_group ($accel_group) o $accel_group (Gtk2::AccelGroup) string = $menu->get_accel_path Since: gtk+ 2.14 $menu->set_accel_path ($accel_path) o $accel_path (string) widget = $menu->get_active $menu->set_active ($index) o $index (integer) $menu->attach ($child, $left_attach, $right_attach, $top_attach, $bottom_attach) o $child (Gtk2::Widget) o $left_attach (integer) o $right_attach (integer) o $top_attach (integer) o $bottom_attach (integer) Since: gtk+ 2.4 $menu->attach_to_widget ($attach_widget, $detacher) o $attach_widget (Gtk2::Widget) o $detacher (scalar) widget = $menu->get_attach_widget $menu->detach list = Gtk2::Menu->get_for_attach_widget ($widget) o $widget (Gtk2::Widget) Since: gtk+ 2.6 integer = $menu->get_monitor Since: gtk+ 2.14 $menu->set_monitor ($monitor_num) o $monitor_num (integer) Since: gtk+ 2.4 $menu->popdown $menu->popup ($parent_menu_shell, $parent_menu_item, $menu_pos_func, $data, $button, $activate_time) o $parent_menu_shell (Gtk2::Widget or undef) o $parent_menu_item (Gtk2::Widget or undef) o $menu_pos_func (scalar) o $data (scalar) o $button (integer) o $activate_time (integer) $menu->reorder_child ($child, $position) o $child (Gtk2::Widget) o $position (integer) $menu->reposition $menu->set_screen ($screen) o $screen (Gtk2::Gdk::Screen) Since: gtk+ 2.2 boolean = $menu->get_tearoff_state $menu->set_tearoff_state ($torn_off) o $torn_off (boolean) string = $menu->get_title $menu->set_title ($title) o $title (string) PROPERTIES
'accel-group' (Gtk2::AccelGroup : readable / writable / private) The accel group holding accelerators for the menu 'accel-path' (string : readable / writable / private) An accel path used to conveniently construct accel paths of child items 'active' (integer : readable / writable / private) The currently selected menu item 'attach-widget' (Gtk2::Widget : readable / writable / private) The widget the menu is attached to 'monitor' (integer : readable / writable / private) The monitor the menu will be popped up on 'reserve-toggle-size' (boolean : readable / writable / private) A boolean that indicates whether the menu reserves space for toggles and icons 'tearoff-state' (boolean : readable / writable / private) A boolean that indicates whether the menu is torn-off 'tearoff-title' (string : readable / writable / private) A title that may be displayed by the window manager when this menu is torn-off SIGNALS
move-scroll (Gtk2::Menu, Gtk2::ScrollType) ENUMS AND FLAGS
enum Gtk2::ScrollType o 'none' / 'GTK_SCROLL_NONE' o 'jump' / 'GTK_SCROLL_JUMP' o 'step-backward' / 'GTK_SCROLL_STEP_BACKWARD' o 'step-forward' / 'GTK_SCROLL_STEP_FORWARD' o 'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD' o 'page-forward' / 'GTK_SCROLL_PAGE_FORWARD' o 'step-up' / 'GTK_SCROLL_STEP_UP' o 'step-down' / 'GTK_SCROLL_STEP_DOWN' o 'page-up' / 'GTK_SCROLL_PAGE_UP' o 'page-down' / 'GTK_SCROLL_PAGE_DOWN' o 'step-left' / 'GTK_SCROLL_STEP_LEFT' o 'step-right' / 'GTK_SCROLL_STEP_RIGHT' o 'page-left' / 'GTK_SCROLL_PAGE_LEFT' o 'page-right' / 'GTK_SCROLL_PAGE_RIGHT' o 'start' / 'GTK_SCROLL_START' o 'end' / 'GTK_SCROLL_END' SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::MenuShell COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::Menu(3)