10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line
if
then... (8 Replies)
Discussion started by: saku
8 Replies
2. Shell Programming and Scripting
Hi, im making a little script but need some help
Code i have so far is
read -p 'Bot Nickname:' ecnick
read -p 'Bot Username:' ecusername
read -p 'Bot Realname:' ecrealname
read -p 'Your Email:' ecemail
echo ''
echo Your bots nickname is set to $ecnick
echo Your bots username is set to... (2 Replies)
Discussion started by: Gemster
2 Replies
3. Shell Programming and Scripting
I have korn shells where I want to create a function passing $1 to a function , determine my $STAT_ENV value, set the paths and return
the paths for STATSH,STATPRM,STATSQR,STATSQL,STATCTL TO BE USED IN THE UNIX SCRIPT THE CALLED THE fucnction in the first place.
Can someone tell me the best... (2 Replies)
Discussion started by: TimHortons
2 Replies
4. Programming
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
5. Shell Programming and Scripting
Suppose I have a Form with 5 fields.
2 of these fields have their imput limited by a rmenu choice. e.g. field1 and field2.
The rmenu choices of field2 are also limited by the choice made for field1.
name=filed1
rmenu=vary { a b c d }
name=field2
rmenu=vary { `script $F1` }
... (2 Replies)
Discussion started by: sb008
2 Replies
6. UNIX for Advanced & Expert Users
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... (0 Replies)
Discussion started by: craigmckeeman
0 Replies
7. Shell Programming and Scripting
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
Hi,
I have a function or script like this.
show()
{
echo "Hi"
} | tee -a log
show
This creates a logfile and prints Hi in it. Now when I try to do the same for sql like this:
show()
{
sqlplus -s scott/tiger<<!
select * from details;
!
} | tee -a log
show
Then it gives me a... (2 Replies)
Discussion started by: sendhilmani
2 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
I was not able to use "cd" command in fmli....can anyone help ? (1 Reply)
Discussion started by: Claude
1 Replies
fmli(1) User Commands fmli(1)
NAME
fmli - invoke FMLI
SYNOPSIS
fmli [-a alias_file] [-c command_file] [-i initialization_file] filename...
DESCRIPTION
The fmli command invokes the Form and Menu Language Interpreter and opens the frame(s) specified by the filename argument. The filename
argument is the pathname of the initial frame definition file(s), and must follow the naming convention Menu.xxx, Form.xxx, or Text.xxx for
a menu, form or text frame respectively, where xxx is any string that conforms to UNIX system file naming conventions. The FMLI descrip-
tor lifetime will be ignored for all frames opened by argument to fmli. These frames have a lifetime of immortal by default.
OPTIONS
The following options are supported:
-a alias_file If -a is specified, alias_file is the name of a file which contains lines of the form alias=pathname. Thereafter,
$alias can be used in definition files to simplify references to objects or devices with lengthy pathnames, or to
define a search path (similar to $PATH in the UNIX system shell).
-c command_file If -c is specified, command_file is the name of a file in which default FMLI commands can be disabled, and new
application-specific commands can be defined. The contents of command_file are reflected in the FMLI Command Menu.
-i initialization_file If -i is specified, initialization_file is the name of a file in which the following characteristics of the appli-
cation as a whole can be specified:
- A transient introductory frame displaying product information
- A banner, its position, and other elements of the banner line
- Color attributes for all elements of the screen
- Screen Labeled Keys (SLKs) and their layout on the screen.
EXAMPLES
Example 1: Examples of the fmli command.
To invoke fmli:
example% fmli Menu.start
where Menu.start is an example of filename named according to the file name conventions for menu definition files explained above.
To invoke fmli and name an initialization file:
example% fmli -i init.myapp Menu.start
where init.myapp is an example of initialization_file.
ENVIRONMENT VARIABLES
Variables
LOADPFK Leaving this environment variable unset tells FMLI, for certain terminals like the AT&T 5620 and 630, to download its
equivalent character sequences for using function keys into the terminal's programmable function keys, wiping out any set-
tings the user may already have set in the function keys. Setting LOADPFK=NO in the environment will prevent this download-
ing.
COLUMNS Can be used to override the width of the logical screen defined for the terminal set in TERM. For terminals with a 132-col-
umn mode, for example, invoking FMLI with the line
COLUMNS=132 fmli frame-file
will allow this wider screen width to be used.
LINES Can be used to override the length of the logical screen defined for the terminal set in TERM.
FILES
/usr/bin/fmli
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
vsig(1F), attributes(5)
DIAGNOSTICS
If filename is not supplied to the fmli command, fmli returns the message:
Initial object must be specified.
If filename does not exist or is not readable, fmli returns an error message and exits. The example command line above returns the follow-
ing message and exits:
Can't open object "Menu.start"
If filename exists, but does not start with one of the three correct object names (Menu., Form., or Text.) or if it is named correctly but
does not contain the proper data, fmli starts to build the screen by putting out the screen labels for function keys, after which it
flashes the message:
I do not recognize that kind of object
and then exits.
SunOS 5.10 14 Sep 1992 fmli(1)