Sponsored Content
Top Forums Shell Programming and Scripting Try to make a single line to syslog. Post 302469004 by iga3725 on Thursday 4th of November 2010 11:40:17 AM
Old 11-04-2010
Yes, but there's no output to syslog, I forgot to add logger command at the end of the code:
Code:
nohup /usr/sbin/auditstream | /usr/sbin/auditselect -m -e "event== S_ENVIRON_WRITE || event== USER_Create || event== USER_Remove || event== USER_Change || event== GROUP_Create || event== GROUP_Remove || event== GROUP_Change || event== PASSWORD_Change" | /usr/sbin/auditpr -h elrtRc -t0 -v| sed 'N;s/\n//'   |logger -p local0.info -t AUDITALERT &

If cat the out from a file, sed works perfectly, but on this chain of code doesn't

I mean, works until the sed command, but no output on the logger command :-(
Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

make and clean in a single rule in the makefile.

Hi, This stems from the following thread https://www.unix.com/showthread.php?t=18299 I have a makefile which makes either executables or a shared library. i.e. make -f unix.mak will create the executables and make -f unix.mak libolsv will create the shared library. Since these have to be... (4 Replies)
Discussion started by: vino
4 Replies

2. Shell Programming and Scripting

make multiple line containing a pattern into single line

I have the following data file. zz=aa azxc-1234 aa=aa zz=bb azxc-1234 bb=bb zz=cc azxc-1234 cc=cc zz=dd azxc-2345 dd=dd zz=ee azxc-2345 ee=ee zz=ff azxc-3456 ff=ff zz=gg azxc-4567 gg=gg zz=hh azxc-4567 hh=hh zz=ii azxc-4567 ii=ii I want to make 2nd field pattern matching multiple lines... (13 Replies)
Discussion started by: VTAWKVT
13 Replies

3. Shell Programming and Scripting

Is there a way to make bash [or another shell] use all CPU cores to execute a single script?

I wrote a very simple script that matches combinations of alphabetic characters (1-5). I want to use it to test CPU speeds of different hardware/platforms. The problem is that on multi-core/processor systems, only one CPU is being utilized to execute the script. Is there a way to change that?... (16 Replies)
Discussion started by: ph0enix
16 Replies

4. Shell Programming and Scripting

Replace several numbers with respective tag and make a single file

Dear All, I have a final output files as 736645|0| 13879|1| 495563|10| 127933|14| 4975|16| 49038|6| 53560|7| 135115|8| 178857|9| Now I want to replace second column with respective tag as per the value (4 Replies)
Discussion started by: jojo123
4 Replies

5. Shell Programming and Scripting

Multiple lines in a single column to be merged as a single line for a record

Hi, I have a requirement with, No~Dt~Notes 1~2011/08/1~"aaa bbb ccc ddd eee fff ggg hhh" Single column alone got splitted into multiple lines. I require the output as No~Dt~Notes 1~2011/08/1~"aaa<>bbb<>ccc<>ddd<>eee<>fff<>ggg<>hhh" mean to say those new lines to be... (1 Reply)
Discussion started by: Bhuvaneswari
1 Replies

6. Shell Programming and Scripting

search between keywords and make a single line

have a very big file where need to format it like below example file: abcd today is great day; search keyword 'abcd' and append to it all words till we reach ; to make it a single line. output should look like. abcd today is great day; There are many occurrence of such... (2 Replies)
Discussion started by: giri4332
2 Replies

7. Shell Programming and Scripting

sed command to grep multiple pattern present in single line and delete that line

here is what i want to achieve.. i have a file with below contents cat fileName blah blah blah . .DROP this REJECT that . --sport 7800 -j REJECT --reject-with icmp-port-unreachable --dport 7800 -j REJECT --reject-with icmp-port-unreachable . . . more blah blah blah --dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies

8. Shell Programming and Scripting

Make Separated files from a single matrix - Perl

Hey Masters, Here is my input: fragmentID chromosome start end HEL25E TRIP1 r5GATC2L00037 chr2L 5301 6026 0.03 0.036 r5GATC2L00038 chr2L 6023 6882 -0.025 -0.041 r5GATC2L00040 chr2R 6921 7695 -0.031 0.005 r5GATC2L00042 chr2R 7715 8554 -0.006 -0.024 r5GATC2L00043 chr3L 8551 8798 0.042 0... (4 Replies)
Discussion started by: @man
4 Replies

9. Shell Programming and Scripting

Make multiple lines into single quoted comma separated Linux

Hi, I want to change a file file1.txt: 1234 3456 2345 6789 3456 2333 4444 As, file2.txt in Linux: '1234','3456','2345','6789','3456','2333','4444' Could someone please help me. (Single liner sed, awk will be welcome!) (7 Replies)
Discussion started by: wiweq05
7 Replies

10. UNIX for Dummies Questions & Answers

To find and display the middle line in a file using single line command.

Hi all, How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies
evmreload(8)						      System Manager's Manual						      evmreload(8)

NAME
evmreload - Reload Event Manager configuration files SYNOPSIS
/usr/sbin/evmreload [-d] [-a] [-c] [-l] [-n] OPTIONS
Reconfigures the EVM channel manager. Reconfigures the EVM daemon. Reconfigures the EVM logger. Syntax checks the event template files and reports errors, but does not make any changes effective. If a daemon reconfiguration is requested, the reconfiguration request will be sent even if there are errors in any template file. If errors exist, there is no guarantee that the new configuration will be accepted. OPERANDS
None DESCRIPTION
The evmreload command posts control events that instruct EVM resident components to reload their configuration files. It should be run to cause EVM to begin using the new configuration any time a configuration file has been changed. If no options are specified, the daemon, the channel manager, and the logger all reload their configurations. The daemon should be reconfigured any time its configuration file or event template database has changed. The logger should be reconfig- ured anytime its configuration has changed. The channel manager should be reconfigured anytime its configuration has changed. Resident EVM components also reload their configuration files on receipt of a SIGHUP signal. If an activity monitor is specified in the EVM daemon configuration file, all counts and timers associated with the monitor are reset. NOTES
The evmreload command uses the evmshow -verify command to check for errors in configuration files before sending a reload request to EVM. If errors are found, they are reported to stderr and no reconfiguration request is sent. This check does not find all possible errors, however, so you should take care to check for errors reported by the EVM components themselves. To do this, run the following command: evmget -A -f '[name *.evm] & [age < 5m]' -t '@timestamp @@' RESTRICTIONS
You must be user root to run this command. EXAMPLES
The following command will cause the EVM daemon to reconfigure itself: /usr/sbin/evmreload -d The following command will cause the EVM log- ger to reconfigure itself: /usr/sbin/evmreload -l The following command will cause the EVM channel manager to reconfigure itself: /usr/sbin/evmreload -c To syntax check the daemon configuration file without any reconfiguration actually occurring, enter the following command: /usr/sbin/evmreload -n To reconfigure both the EVM daemon and the EVM logger, enter the following command: /usr/sbin/evmreload -d -l To reconfigure the EVM daemon, the EVM logger, and the EVM channel manager, enter the following command: /usr/sbin/evmreload The follow- ing command will reconfigure the EVM daemon, the EVM logger, and the EVM channel manager even if there are errors in the template file. /usr/sbin/evmreload -a EXIT VALUES
The following exit values are returned: Successful completion An error occurred FILES
Executable file SEE ALSO
Commands: evmchmgr(8), evmd(8), evmlogger(8), evmpost(1) Files: evmchannel.conf(4), evmdaemon.conf(4), evmlogger.conf(4) Event Management: EVM(5) EVM Events: EvmEvent(5) delim off evmreload(8)
All times are GMT -4. The time now is 07:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy