The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
FMLI on Suse Marcos Brito High Level Programming 2 09-26-2007 08:54 AM
using fmli to create menu's craigmckeeman UNIX for Advanced & Expert Users 0 10-06-2006 12:45 PM
fmli functions? craigmckeeman Shell Programming and Scripting 0 10-03-2006 04:45 AM
Fmli Signal/trap Marcos Brito Shell Programming and Scripting 0 03-22-2005 03:20 PM
using CD command in fmli Claude Shell Programming and Scripting 1 12-01-2001 03:08 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-29-2006
craigmckeeman craigmckeeman is offline
Registered User
  
 

Join Date: Sep 2006
Location: Milton Keynes
Posts: 4
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
  #2 (permalink)  
Old 09-29-2006
anbu23 anbu23 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
can you show us Hosts.data file ?
can you show us the values in m0 and $ARG1 ?
  #3 (permalink)  
Old 09-29-2006
craigmckeeman craigmckeeman is offline
Registered User
  
 

Join Date: Sep 2006
Location: Milton Keynes
Posts: 4
The Host.data file has something simular to ;

Host01
Host02
Host03
Host04
....
Hostnn

the $ARG1 will either be "Build", "FTP" or "Release", and is used to be passed through as an argument for Menu.Login.mnu

$m0 will just be the values of Host.data file
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0