Sponsored Content
Full Discussion: trap command
Top Forums UNIX for Dummies Questions & Answers trap command Post 302536988 by Straitsfan on Wednesday 6th of July 2011 07:27:22 PM
Old 07-06-2011
Okay -- but I still don't get why the message isn't displayed. Other folks can get it. Any idea why not me? My book says it should display the message and go right back to the loop.

Sorry if it's a basic question, but I'm still new to this.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using TRAP command

I'm using the trap command to capture any signals received whilst my script is running. How's the best way of writing the signal and any other error messages to a file/error log' without having to type '2>$1' on the command line after the script name? Cheers (3 Replies)
Discussion started by: dbrundrett
3 Replies

2. UNIX for Dummies Questions & Answers

trap command

i have the following script that displays the current time until the user presses CTR + c.... but it does not work properly.... Something is not right with the trap command... Help plz... :confused: # script to continuously display current time. # if script is terminated trap signal... (3 Replies)
Discussion started by: onlyc
3 Replies

3. UNIX for Dummies Questions & Answers

trap command

Dear All could you please explain me what does the trap command do and how I can write a program which can work as a trap command(in C Language). (1 Reply)
Discussion started by: mobile01
1 Replies

4. Programming

trap command in Unix

Could anybody tell me what the trap command does and how it performs the action it does. I had read the trap manual page but it is too concise that nothing is clear about it. Please tell how it works. (1 Reply)
Discussion started by: mobile01
1 Replies

5. Shell Programming and Scripting

Use of TRAP Command

Hi, I would like to know the use of TRAP command. I am very new to the UNIX environment. I have just started learning the basic. So please teach me in a very simple way to understand. Also i would like to know the use of following command: trap 'dialog --msgbox "Script Aborted1" 6 50 ;... (2 Replies)
Discussion started by: Deepakh
2 Replies

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

7. UNIX for Advanced & Expert Users

trap command

Hello experts! I need to know the use of trap command please In one of our program we have trap "rm -f temp1 ; exit 1" 1 2 15 0 and program always exit with 1 there is a rm -f temp1 as well at the end of the program as rm -f temp1 exit 0 when I test a probram with set... (4 Replies)
Discussion started by: ramshree01
4 Replies

8. Shell Programming and Scripting

trap command

dear all; I can't under stand what does "trap" command do: for example see below: trap "echo; echo no interrupts >&2; sleep 3" 2 3 15 Plz , can any body explain the action of this command? BR (3 Replies)
Discussion started by: ahmad.diab
3 Replies

9. Homework & Coursework Questions

VM trap may work differently than a pure install trap.

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: That is the last reply I received from my instructor, and I'm looking for some alternatives. When using... (2 Replies)
Discussion started by: newuser45
2 Replies

10. Shell Programming and Scripting

Trap command not working

Hi Folks - For some reason, my trap command is not working. It's placed just prior to a normal exit: #:: ------------------------------------------------------------------------ #::-- Script Name: LCM_Backup.sh #:: #::-- Description: This script leverages Utility.sh to perform LCM... (16 Replies)
Discussion started by: SIMMS7400
16 Replies
dspcat(1)						      General Commands Manual							 dspcat(1)

NAME
dspcat - display all or part of a message catalog SYNOPSIS
catalog_name [set_number [message_number]] DESCRIPTION
The command displays a particular message, all of the messages in a set, or all of the messages in a catalog. If you include all three command operands, displays a particular message. If you do not include message_number, all the messages in the specified set are displayed. If you specify only catalog_name, all the messages in the catalog are displayed. If you specify either an invalid message_number or invalid set_number, an error message is displayed. You must include set_number if you include message_number. Options The command recognizes the following option: Formats the output so that it can be used as input to the command. You cannot use the message_number operand with the option. Operands The command recognizes the following operands: catalog_name Specifies a file containing a message catalog. If the file is not in the set of directories specified by the envi- ronment variable, searches for it in the current directory. (For more information about see environ(5).) set_number Specifies a set in the catalog. message_number Specifies a particular number in the specified set. EXTERNAL INFLUENCES
Environment Variables provides a default value for the internationalization variables that are unset or null. If is unset or null, it defaults to (see lang(5)). when set to a non-empty string value, overrides the values of all other internationalization variables. determines the language in which messages are displayed. determines the path to be used for searching the specified message catalog file. It affects how the internationalization variables are used in locating the desired message catalog. EXAMPLES
To display message number 2 in set number 1 of test.cat, enter: AUTHOR
The command was developed by OSF and HP. SEE ALSO
dspmsg(1), gencat(1), mkcatdefs(1), catclose(3C), catgets(3C), catopen(3C). dspcat(1)
All times are GMT -4. The time now is 06:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy