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)
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)
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)
(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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
ibod_cf
IBOD.CF(4) Kernel Interfaces Manual IBOD.CF(4)NAME
ibod.cf - configuration file for ibod (ISDN Bandwidth On Demand)
DESCRIPTION
This file contains the initial configuration values for the ibod daemon. Each line contains a keyword and a value.
Boolean attributes are set with 0 or 1 which corresponds to false and true respectively. A boolean attribute not specified at all is always
false.
Lines beginning with # are treated as comments and will be ignored.
IMPORTANT RULES!
1. Keywords are case sensitive.
2. Kewords must begin at the first column.
3. Keywords and values must be separated by exactly one (1) space or tab character.
This file is re-read every time ibod receives SIGHUP (1) signal.
OPTIONS
DEVICE <name>
Name of ISDN PPP device. Default is ippp0.
ENABLE 1|0
Enable/disable bandwidth-on-demand. Default is enable (1).
INTERVAL <n>
Specify the sample time interval in ms. Default is 500 ms.
FILTER <n>
Defines "filtering factor". A value of 10 means that the average bytes/sec value measured over 10 intervals must pass the limit
defined by LIMIT to bring up or down the slave link. Default is 5.
LIMIT <n%>
Specifies percentage loading of the channel at which it is necessary to up or down channels. This sets both up and down limits to
the same value. Note that this has changed from version 1.4.
UPLIMIT <n%>
Specifies percentage loading of the channel at which it is necessary to up channels. Default is 90.
DOWNLIMIT <n%>
Specifies percentage loading of the channel at which it is necessary to down channels. Default is 80.
STAYUP 0|1
Enable/disable slave channel stay up function. If enabled, the second channel (slave link) will stay up even if the average
bytes/sec decrease the value defined by LIMIT. In this case the slave link will stay up until hangup time is reached. (Example:
isdnctrl huptimeout ippp1 60) If disabled the slave link will be brought down in the same way it was brought up. Default is 0.
STAYUP_TIME <n>
Defines the minimum time in seconds the second channel will unconditionally stay up after it has been brought up. Default value is
30.
STAYDOWN_TIME <n>
Defines the minimum time in seconds the second channel will unconditionally stay down after it has been brought up. Default value is
10.
FULL <n>
Defines the maximum throughput in bytes/sec one channel can transmit. Default value is 7500.
MAX_CHANNELS <n>
Defines the maximum number of channels the connection can run with. Default is 2.
SEE ALSO ibod(1) and xibod(1)AUTHOR
Jan Obladen, obladen@datenwelt.net
Bjoern Smith, Smith@Compound.SE
Paul Martin <pm@debian.org>
IBOD.CF(4)