03-19-2004
How to supress a "Killed" message when a process is terminated?
Does anyone know how I can supress the "Killed" message that's produced when I kill a process? I've got a script that performs a "tail -f" on a database error log and pipes the output into an awk script which looks for certain error messages and forwards any that qualify to my pager. The problem is, the error log gets renamed nightly, so I have to stop and restart my script, in order to pick up the new file. When I kill the "tail -f" process through a different script, a "Killed" message is generated and sent to the user under whom the "tail -f" cron was running. That "Killed" message is what I'm trying to supress. I've tried directing the STDERR to /dev/null, but don't seem to be having any luck. If it matters, this is a Bourne (/bin/sh) shell script.
TIA!
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a process that can be seen after "ps aux" command.
However when I do "top" command. This process
cannot be seen.
How can this happen? Is there anything wrong
with my code? (3 Replies)
Discussion started by: monkfan
3 Replies
2. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
3. Red Hat
Friends ,
Anybody plz tell me what is the basic difference between "service" , "process" and " daemon" ?
Waiting for kind reply .. .. (1 Reply)
Discussion started by: shipon_97
1 Replies
4. AIX
Hi,
After run ps , uptime , w command I get reply "killed" as normal dba and staff group user.
As root every command works fine.
I cheched all the user settings , right with other servers and I could not find any error and other settings.
The oslevel is 5300-10-01-0921.
Any idea to... (12 Replies)
Discussion started by: boki
12 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. UNIX for Dummies Questions & Answers
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
strerr(8) System Manager's Manual strerr(8)
NAME
strerr - Receives error messages from the STREAMS log driver
SYNOPSIS
/usr/sbin/strerr [-a sys_admin_mail_name] [-d logdir]
PARAMETERS
Specifies the mail name of the user to receive the message via mail. This is the system administrator by default. Specifies the directory
to contain the error log file. This is /var/adm/streams by default.
DESCRIPTION
The strerr daemon receives error messages from the STREAMS log driver (strlog) for addition to the STREAMS error log files (error.mm.dd) in
the STREAMS error logger directory (/var/adm/streams by default). When first called, the strerr daemon creates the log file error.mm.dd.
This is a daily log file, where mm indicates the month and dd indicates the day of the logged messages. The strerr daemon then appends
each error message that it subsequently receives from the STREAMS log driver to the log file.
STREAMS error log messages have the following format: seq_num std_time ticks_time flags mod_ID sub_ID msg_text where: The error
sequence number. The time the message was sent, in the format hh:mm:ss. The time the message was sent, measured in machine ticks since
the last boot. Can be any of the following indicators: Indicates that the message has also been saved in the process's trace log. Indi-
cates that the message signaled a fatal error. Indicates that the message is to be sent to the system administrator or specified user via
mail. The module identification number of the trace message source. The subidentification number of the trace message source. The trace
message text.
The strerr daemon will run continuously until terminated by the user.
FILES
The error log file or files on which strerr operates.
NOTES
Only one strerr process can open the STREAMS log driver at a time. This restriction is intended to maximize performance.
The STREAMS error logging mechanism works best when it is not overused. The strerr daemon can degrade STREAMS performance by affecting the
response, throughput, and other behaviors of the drivers and modules that invoke it. The daemon will also fail to capture messages if
drivers and modules generate messages at a higher rate than its optimum read rate. Missing sequence numbers among the messages in a log
file indicate that messages have been lost.
RELATED INFORMATION
Interfaces: strlog(7). delim off
strerr(8)