Sponsored Content
Full Discussion: Reg trap signals
Top Forums Shell Programming and Scripting Reg trap signals Post 302855909 by Karthick N on Saturday 21st of September 2013 01:13:37 PM
Old 09-21-2013
using Ksh
 

10 More Discussions You Might Find Interesting

1. Programming

Signals In HP-UX

does the way of handling, interrupting signals in HP-UX same as that of solaris. If there is difference than what it is.?:confused: (1 Reply)
Discussion started by: kapilv
1 Replies

2. UNIX for Advanced & Expert Users

how to trap signals.

hi!!, i wanna trap all Signal 10, 11, 15 generated by any process running on my server irrespective of the user and wanna write to a log file. Any ideas? Do this script need to be a root process?? :cool: (1 Reply)
Discussion started by: jyotipg
1 Replies

3. Shell Programming and Scripting

Building a better mouse trap, or How many lines of code does it take to trap a mouse?

Hello all, I'm hoping to get a little insight from some of the wily veterans amongst you. I've written a script to check for new outgoing files to our vendors located on our ssl server. It seems to be working ok, but the final question here, will be one of logic, and/or a better way to... (4 Replies)
Discussion started by: mph
4 Replies

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

5. UNIX for Dummies Questions & Answers

Signals...

(posted this in the scripting forum as well, but figured it should go here) So, what's going on is this: For our program, we had to create our own shell, and if the user pressed ctrl-c just at the cmdline, then this signal would be ignored, but if there is a foreground process running, let's... (0 Replies)
Discussion started by: blind melon
0 Replies

6. Programming

Using Signals

How can use signals in a C program If i want a child program to signal it's parent program that it(child) program has completed the task that it was assigned.:confused: (2 Replies)
Discussion started by: kapilv
2 Replies

7. Shell Programming and Scripting

how trap the signals in shell scripting

Hi all, I have the c program that c program has to be in sleep mode. I want write a script the it should trap the signal from the c program. The signals are sighup,sigkill,sigterm,sigchld and then it has to go to sleep. If signal is sigchld it has to do to some function. My question is how to... (3 Replies)
Discussion started by: bhas85
3 Replies

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

9. UNIX for Advanced & Expert Users

Help with Signals

Hi All, The problem statement is as below: Problem: A process (exe) is getting executed in background. The output of this process is getting logged in a file. After successfully running for some time the process gets terminated. In the log file following is present: ^M[7m Interrupt ^M[27m... (8 Replies)
Discussion started by: Praty.27
8 Replies

10. Shell Programming and Scripting

Help with trap and signals

I am having issues with trap not working inside a script. I am currently trying this on a Knoppix system V 5.1. What I would like to happen is when I press control c, a message gets echoed and the script is ended. For example: #! /bin/bash trap "echo CTRL c was pressed ; break" SIGINT... (11 Replies)
Discussion started by: Basherrr
11 Replies
REDET(1)							   User Commands							  REDET(1)

NAME
redet - regular expression development and execution tool SYNOPSIS
redet <options> [<input file>] DESCRIPTION
redet allows the user to construct regular expressions and test them against input data by executing any of a variety of search programs, editors, and programming languages that make use of regular expressions. When a suitable regular expression has been constructed it may be saved to a file. Redet currently supports over fifty different programs and regular expression libraries. These include multiple versions of grep, several editors (Ed, Emacs, Sed, Vim), all the popular scripting languages (Awk, Perl, Python, Ruby, Tcl) and some less popular ones (Lua, Pike, Rebol), most shells (Bash, Ksh, Tcsh, Zsh) and various other languages, including Guile, Icon and Java. For each program, a palette showing the available regular expression syntax is provided. Selections from the palette may be copied to the regular expression window with a mouse click. Users may add their own definitions to the palette via their initialization file. Redet also keeps a list of the regular expressions executed, from which entries may be copied back into the regular expression under construction. The history list is saved to a file and restored on startup, so it persists across sessions. Redet provides both regular expression matching and substitution so long as the underlying program does. Although Redet is primarily an interface for other programs, it adds some features of its own. It is possible to define named character classes within Redet and to intersect them. This allows provides a means of searching on feature matrices. So long as the underlying program supports Unicode, redet allows UTF-8 Unicode in both test data and regular expressions. Several tools provide additional support for Unicode use. These include popup lists of Unicode ranges and general character properties, a widget for entering characters by their numerical code, and widgets for entering International Phonetic Alphabet characters, widgets for entering let- ters with a variety of accents and other diacritics. Although internal operations are entirely in Unicode, test data, comparison data, and results may be read and written in any encoding supported by Tcl/Tk. Redet is fully internationalized. If a suitable message catalogue is provided, the interface may be made available in any language and writing system supported by Unicode for which the necessary fonts are available. For usage information, execute redet with the command line flag -h. Full information about redet is available from the reference manual, which consists of a set of web pages. The master copy is located at: http://www.cis.upenn.edu/~wjposer/RedetManual/Manual.html. The entry Illustrated Web Manual on the Help menu will take you to the master manual page. The manual pages are packaged with every copy of Redet. OPTIONS
-c <file name> read character class definitions from the named file -d set the debug flag. This causes additional information to be printed during program execution. It is mostly useful for developers. -F <filename> read a feature list from <filename> -f act as a filter. This means that input is read from the standard input and output written to the standard output. -H do not read the history file -h print this help information -I <file> read <file> as the initialization file -i do not read the initialization file -n do not execute feature tests on startup -P list the programs supported and indicate which are available -p <program> use the named program -s start up in substitution mode -t show the results of feature tests -v print the program name and version, then exit SEE ALSO
awk (1), ed (1),grep (1), perl (1), sed (1) AUTHOR
Bill Poser (billposer@alum.mit.edu) LICENSE
GNU General Public License (http://www.gnu.org/licenses/gpl.txt), version 2. redet May 2007 REDET(1)
All times are GMT -4. The time now is 05:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy