01-26-2007
What is your goal basically?Why you want to capture?
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I have a command in a script .
/usr/bin/iostat -E
I would like to place an entry in /var/adm/messages (via syslog) as a daemon.notice using the logger command but i just cant work out the syntax for this , do I pipe the output of iostat into logger? or is it redirected...can somebody give me... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Whenever i press the backspace key, a new line appears, i.e. it works like a enter key. :confused:
Thanks (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies
3. Solaris
Hi,
I have an application log file and I am redirecting it to syslog
...| logger -p user.err
Howver, the size redirected is too arge and I am seeking a way to filter what to redirect to syslog.
any mean to do this, knowing that I do not want to decrease the log level of the app?
... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies
4. 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
5. Solaris
Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks.
... (1 Reply)
Discussion started by: aixlover
1 Replies
6. Red Hat
When inserting a temperature logger into a Centos 7.0 machine, the relevant dmesg lines read:
usb 2-1.4: new full-speed USB device number 4 using ehci-pci
usb 2-1.4: New USB device found, idVendor=10c4, idProduct=82cd
usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb... (5 Replies)
Discussion started by: figaro
5 Replies
7. Shell Programming and Scripting
Hi,
On RHEL 7.2, I created below script in cronjob for every minute. If this process is found to be not running, it should record message in /var/adm/xymessages, start it and send email.
#!/bin/bash
source /export/home/prodadm/.bash_profile
if ;
then
... (8 Replies)
Discussion started by: ron323232
8 Replies
LOGGER(1) General Commands Manual LOGGER(1)
NAME
logger - make entries in the system log
SYNOPSIS
logger [ -t tag ] [ -p pri ] [ -i ] [ -f file ] [ message ... ]
ARGUMENTS
-t tag Mark every line in the log with the specified tag.
-p pri Enter the message with the specified priority. The priority may be specified numerically or as a ``facility.level'' pair. For
example, ``-p local3.info'' logs the message(s) as informational level in the local3 facility. The default is ``user.notice.''
-i Log the process id of the logger process with each line.
-f file Log the specified file.
message The message to log; if not specified, the -f file or standard input is logged.
DESCRIPTION
Logger provides a program interface to the syslog(3) system log module.
A message can be given on the command line, which is logged immediately, or a file is read and each line is logged.
EXAMPLES
logger System rebooted
logger -p local0.notice -t HOSTIDM -f /dev/idmc
SEE ALSO
syslog(3), syslogd(8)
4.3 Berkeley Distribution September 17, 1985 LOGGER(1)