Fmli Signal/trap


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Fmli Signal/trap
# 1  
Old 03-22-2005
Java 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.

Thanks in advance for any help.

Marcos Brito.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Perl: trap signal 'exit': why I am not able to have it work??

First time trying to work with signals in Perl. Reviewing example I try it, but not able to get it work for 'exit'. I hope, I am correct, assuming, that the ending any code by exit $return_code; the $SIG{EXIT} should be de-referenced and processed?! So, I have such code, that, I assume,... (5 Replies)
Discussion started by: alex_5161
5 Replies

2. Shell Programming and Scripting

Quiting running process without catching TRAP signal

Hi, I would like to ask, if is it possible to quit running loop in the script any other way than catching the trap signal. Ctrl-C ends only current running instance of process but not whole script. Any clues? (3 Replies)
Discussion started by: smoofy
3 Replies

3. Solaris

Trap signal on Window Manager "X" button clicked?

Well, my first post... thanks in advance! Can applications be notified of the X Window close (with "X" button) so the signal handler can run a cleanup process method? About the app: built with GNU C/C++ on Solaris 10, with WxWidgets. It is launched by a shell script as a background task. The... (2 Replies)
Discussion started by: HandsOGold
2 Replies

4. Shell Programming and Scripting

How trap a signal in shell script?

Hi , i have a scenario where...i have to put a check where if script is executing more than 15mins i have to kill that script and n retry again 2nd time. i this case i can use background process to do it but i feel trap will be the efficent way to do so... but i dont know much about it... (1 Reply)
Discussion started by: crackthehit007
1 Replies

5. Shell Programming and Scripting

Record the Signal Type or Number in Bash Trap function

In my Bash script I have an exit/cleanup function in a trap statement like: trap exitCleanup 1 2 3 6 15 25 Is there anyway to capture which signal # has occurred to record in a log file. Please note I am trying to avoid something like: trap 'mySignal=1; exitCleanup' 1 trap... (1 Reply)
Discussion started by: ckmehta
1 Replies

6. Shell Programming and Scripting

How to Trap kill -9 signal

I just want to trap kill -9 signal issued by any of user from any terminal and just capture that user terminal who had raised this kill -9 command (1 Reply)
Discussion started by: puneet.goel
1 Replies

7. Shell Programming and Scripting

Cntl+z Trap is not detecting ??? Help required to add a trap detection ???

Hi folks, I have tried to add some trap detection in the below script....this script is used to monitor database activities...in a rather awkward way :rolleyes:.... The idea behind adding trap is that....this script creates lots of temporary files in the running folder to store the count... (1 Reply)
Discussion started by: frozensmilz
1 Replies

8. UNIX for Dummies Questions & Answers

trap signal on user logout ?

hi all , I want to execute a script on the user logout(using gnome environment). Is ther any way to execute it through TRAP stmt? (2 Replies)
Discussion started by: harsha10
2 Replies

9. Shell Programming and Scripting

trap signal for enter key

hi , What is the trap signal for "ENTER key"? (4 Replies)
Discussion started by: Sreejith_VK
4 Replies

10. Shell Programming and Scripting

how to trap unix signal if the process killed/interupt occured in bash...

hey champs, I have a process running.......i have to catch/trap the signal when the process is being interupted/killed (kill -9 pid) option...... how can i achieve the same thru my process........ let my process is a.sh and it supposed to take 13 mins to complete, but due to some problem ,... (15 Replies)
Discussion started by: manas_ranjan
15 Replies
Login or Register to Ask a Question
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)