Hello,
I am looking for a script, or pointer to an approach to creating a script, that will compare two versions of a codebase and output a third directory structure containing only the files that differ between the two. I use diff quite often, but it will only create patch files (AFAIK). Does... (3 Replies)
Hi
I am Trying to Write a script that can goto 4 different directorys on the server & remove the Files older then 30 days ??
/logs
logs1 logs2 logs3
Now I need to remove files under
logs1 logs2 logs3 which are older then 30 days whose name stat 'sit' , 'mig','bld' .
in... (3 Replies)
How to compare new version exist of two path directory.
for e.g., path1 - /user/path/test/
path2 - /user/path/score/
If its exist new version then copy that new version into the first path directroy. How will do this. (3 Replies)
Hello to all,
I would like to search sequences of bytes inside big binary file.
The bin file contains blocks of information, each block begins is estructured as follow:
1- Each block begins with the hex 32 (1 byte) and ends with FF. After the FF of the last block, it follows 33.
2- Next... (59 Replies)
Hi, I have 2 different values in the same column and two different values in other column
Query 1
ins name value
1 Test 12345
1 TestV1 12/10/2014
8 Test 85435
8 TestV1 11/11/2005
9 Test 42232
9 TestV1 19/10/2000
6 Test 54321... (6 Replies)
Given this file (I separated them in block to make my explanation clearer):
92157768877;Sof_deme_Fort_Email_am_%yyyy%%mm%%dd%;EMAIL;20/02/2015;1;0;0
92157768877;Sof_trav_Fort_Email_am_%yyyy%%mm%%dd%;EMAIL;20/02/2015;1;0;0
91231838895;Sof_deme_faible_Email_am;EMAIL;26/01/2015;1 0;0... (1 Reply)
hi, I need to know if a specific directory exists in a folder named after the date of yesterday (02/06/2015)
The problem is simple but not how to do it. :confused:i= date -d "yesterday" '%Y-%m-%d' <- the format of directory is 2015-06-02
if in /var/logroot/index exist directory whit... (4 Replies)
How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on:
$ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print
it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies
LEARN ABOUT SUSE
eventlogadm
EVENTLOGADM(8) System Administration tools EVENTLOGADM(8)NAME
eventlogadm - push records into the Samba event log store
SYNOPSIS
eventlogadm [-d] [-h] -o addsource EVENTLOG SOURCENAME MSGFILE
eventlogadm [-d] [-h] -o write EVENTLOG
eventlogadm [-d] [-h] -o dump EVENTLOG RECORD_NUMBER
DESCRIPTION
This tool is part of the samba(1) suite.
eventlogadm is a filter that accepts formatted event log records on standard input and writes them to the Samba event log store. Windows
client can then manipulate these record using the usual administration tools.
OPTIONS -d
The -d option causes eventlogadm to emit debugging information.
-o addsource EVENTLOG SOURCENAME MSGFILE
The -o addsource option creates a new event log source.
-o write EVENTLOG
The -o write reads event log records from standard input and writes them to the Samba event log store named by EVENTLOG.
-o dump EVENTLOG RECORD_NUMBER
The -o dump reads event log records from a EVENTLOG tdb and dumps them to standard output on screen.
-h
Print usage information.
EVENTLOG RECORD FORMAT
For the write operation, eventlogadm expects to be able to read structured records from standard input. These records are a sequence of
lines, with the record key and data separated by a colon character. Records are separated by at least one or more blank line.
The event log record field are:
o LEN - This field should be 0, since eventlogadm will calculate this value.
o RS1 - This must be the value 1699505740.
o RCN - This field should be 0.
o TMG - The time the eventlog record was generated; format is the number of seconds since 00:00:00 January 1, 1970, UTC.
o TMW - The time the eventlog record was written; format is the number of seconds since 00:00:00 January 1, 1970, UTC.
o EID - The eventlog ID.
o ETP - The event type -- one of "INFO", "ERROR", "WARNING", "AUDIT SUCCESS" or "AUDIT FAILURE".
o ECT - The event category; this depends on the message file. It is primarily used as a means of filtering in the eventlog viewer.
o RS2 - This field should be 0.
o CRN - This field should be 0.
o USL - This field should be 0.
o SRC - This field contains the source name associated with the event log. If a message file is used with an event log, there will be a
registry entry for associating this source name with a message file DLL.
o SRN - The name of the machine on which the eventlog was generated. This is typically the host name.
o STR - The text associated with the eventlog. There may be more than one string in a record.
o DAT - This field should be left unset.
EXAMPLES
An example of the record format accepted by eventlogadm:
LEN: 0
RS1: 1699505740
RCN: 0
TMG: 1128631322
TMW: 1128631322
EID: 1000
ETP: INFO
ECT: 0
RS2: 0
CRN: 0
USL: 0
SRC: cron
SRN: dmlinux
STR: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)
DAT:
Set up an eventlog source, specifying a message file DLL:
eventlogadm -o addsource Application MyApplication | \
%SystemRoot%/system32/MyApplication.dll
Filter messages from the system log into an event log:
tail -f /var/log/messages | \
my_program_to_parse_into_eventlog_records | \
eventlogadm SystemLogEvents
VERSION
This man page is correct for version 3.0.25 of the Samba suite.
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
Samba 3.5 06/18/2010 EVENTLOGADM(8)