hi,
i am getting this error while executing the script with cron:-
COMMON_ROOT=/files/common: is not an identifier
Manual run is ok, not getting any error. (2 Replies)
I use sed and awk. I am not a big expert but to some extent. I have file like this
PFA0165c ctg_6843
PFA0335w ctg_6843 ctg_6871 ctg_6977 ctg_6654 ctg_7052 ctg_6899 ctg_6840 ctg_7202 ctg_6638
PFA0155c ctg_6877 ctg_7169 ctg_7179 ctg_6843 ctg_6871
Now I want output like... (6 Replies)
Hello guys,
I need a script to get the common lines from two files with a criteria that if the first two columns match then I keep the maximum value of the 3rd column.(tab separated columns)
Sample input:
file1:
111 222 0.1
333 444 0.5
555 666 0.4
file 2:
111 222 0.7
555 666... (5 Replies)
Hi all,
This should be very easy but I can't figure it out...
I have a file that looks like this:
@SRR057408.1 FW8Y5CK02R652T length=34
AGCAGTGGTATCAACGCAGAGTAAGCAGTGGTAT
+SRR057408.1 FW8Y5CK02R652T length=34
FIIHFF6666?=:88@@@BBD:::?@ABBAAA>8
@SRR057408.2 FW8Y5CK02TBMHV length=52... (1 Reply)
Hello guys,
I need a script to get the common lines from two files with a criteria that if the first two columns match then I keep the maximum value of the 5th column.(tab separated columns) . 3rd and 4th columns corresponds to the row which has highest value for the 5th column.
Sample... (2 Replies)
Hi
I have 2 files with following data
First file,
sp|Q676U5|A16L1_HUMAN,
Autophagy-related protein 16-1 OS=Homo sapiens GN=ATG16L1 PE=1 SV=2,
Maximum coiled-coil residue probability: 0.657 in position 163.
Maximum dimeric residue probability: 0.288 in position 163.
... (1 Reply)
Hi,
I have a table to be imported for R as matrix or data.frame but I first need to edit it because I've got several lines with the same identifier (1st column), so I want to sum the each column (2nd -nth) of each identifier (1st column)
The input is for example, after sorted:
K00001 1 1 4 3... (8 Replies)
Hi All,
i have below two files.
FILE:
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="" MOUNTPOINT=""
NAME="/dev/sda1" TYPE="part" SIZE="500M" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="/dev/sda" MOUNTPOINT="/boot"
NAME="/dev/sda2"... (3 Replies)
Discussion started by: balu1234
3 Replies
LEARN ABOUT LINUX
alarm_handler
alarm_handler(3erl) Erlang Module Definition alarm_handler(3erl)NAME
alarm_handler - An Alarm Handling Process
DESCRIPTION
The alarm handler process is a gen_event event manager process which receives alarms in the system. This process is not intended to be a
complete alarm handler. It defines a place to which alarms can be sent. One simple event handler is installed in the alarm handler at
start-up, but users are encouraged to write and install their own handlers.
The simple event handler sends all alarms as info reports to the error logger, and saves all of them in a list which can be passed to a
user defined event handler, which may be installed at a later stage. The list can grow large if many alarms are generated. So it is a good
reason to install a better user defined handler.
There are functions to set and clear alarms. The format of alarms are defined by the user. For example, an event handler for SNMP could be
defined, together with an alarm MIB.
The alarm handler is part of the SASL application.
When writing new event handlers for the alarm handler, the following events must be handled:
{set_alarm, {AlarmId, AlarmDescr}} :
This event is generated by alarm_handler:set_alarm({AlarmId, AlarmDecsr}) .
{clear_alarm, AlarmId} :
This event is generated by alarm_handler:clear_alarm(AlarmId) .
The default simple handler is called alarm_handler and it may be exchanged by calling gen_event:swap_handler/3 as gen_event:swap_han-
dler(alarm_handler, {alarm_handler, swap}, {NewHandler, Args}) . NewHandler:init({Args, {alarm_handler, Alarms}}) is called. Refer to
gen_event(3erl) for further details.
EXPORTS
clear_alarm(AlarmId) -> void()
Types AlarmId = term()
Clears all alarms with id AlarmId .
get_alarms() -> [alarm()]
Returns a list of all active alarms. This function can only be used when the simple handler is installed.
set_alarm(alarm())
Types alarm() = {AlarmId, AlarmDescription}
AlarmId = term()
AlarmDescription = term()
Sets an alarm with id AlarmId . This id is used at a later stage when the alarm is cleared.
SEE ALSO error_logger(3erl), gen_event(3erl)Ericsson AB sasl 2.1.9.3 alarm_handler(3erl)