02-01-2005
Ah, thanks ZB. That is exaclty what I was looking for. And yes, this guy is a fool, heh.
-Robert
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
#!/bin/csh
I'm using a `while(1)` loop to dispaly real-time information about various files on my system, and I use ^C to exit it when needed. I was hoping there was a way to exit the script on a normal keystroke such as "q". Can someone point me in the right direction? I'm willing to use a... (7 Replies)
Discussion started by: seg
7 Replies
2. UNIX for Dummies Questions & Answers
Hi,
How to track/trap the keyboard strokes in the script
say for eg, in normal scene, when a script is running, if a press control c, the program gets terminated...
so in this case, how do i trap the keystrokes so as to avoid the abort of the program..
pls help (1 Reply)
Discussion started by: vasikaran
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need to modify some entries in LDAP, but with what keystroke do I exit and apply the changes?
Thanks
Brissix (0 Replies)
Discussion started by: brissix
0 Replies
4. Solaris
Hello
I am unable to enter my password because the OS does not respond to my keystrokes in the password field at the log-in menu, even though it does in the username field. I have no clue how to troubleshoot this. Please help me out.
Thank you (11 Replies)
Discussion started by: dai2809
11 Replies
5. Shell Programming and Scripting
Hello All,
I wounder if any one know if perl have the ability to run script in the background which record each keyboard keystorke?
If yes , how can I implement the part which reading the keyboard keystroke?
Is there any moudle that handle it ?
Thanks a head
Alalush (1 Reply)
Discussion started by: Alalush
1 Replies
6. Cybersecurity
Hi all,
Does anyone know if there is a tool in the market that could do the following when System Admin log to the server as root and perform activities according to his change request:
- trap or log his keystroke for the entire duration
- provide a report on the changes SA has made to the... (3 Replies)
Discussion started by: mohzub
3 Replies
7. Shell Programming and Scripting
Hi All ,
I am writing a shell script for a 3D test case . The 3D Test case involves the user to press some keys to see the changes in the 3d test case . The user has to press p , r , a , z etc to observe the changes on screen .
Now please let me know how can i implement the keystroke p , a ,... (1 Reply)
Discussion started by: dskonnur
1 Replies
8. UNIX for Dummies Questions & Answers
i have the below script:
#!/bin/bash
echo "enter a"
read a
echo "enter b"
read b
let c=a+b
echo $c
at any point of time between entering the value for a and b,if user presses ctrl+a key combination, then it should start from the beginning(the script should be restarted).
it should... (4 Replies)
Discussion started by: pandeesh
4 Replies
9. UNIX for Advanced & Expert Users
I'm having an issue with keystoke logging. As we know in unix you can press tab to auto-complete a command or whatever it is you are typing. Well keystoke logging in /var/log/ks, tabs are actually showing up as tabs rather than whatever the auto-completion was.
Any ideas? (5 Replies)
Discussion started by: scj2012
5 Replies
10. Infrastructure Monitoring
Hello Team,
I am getting below error on nagios to monitor windows Server 2012.
Failed to read from eventlog: 31: A device attached to the system is not functioning.
basically we are monitoring Eventlog file for server reboot or unexpected shutdown. Could you please help here. What could be... (0 Replies)
Discussion started by: ghpradeep
0 Replies
LEARN ABOUT SUNOS
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)