The logger command that MadeInGermany suggests should not be a privileged command. What command can you not issue?
Looking at your records from syslog.conf, the theory is that the first record that captures *.info along with other things to /var/log/messages should actually capture all messages of severity level info or higher.
Can anyone tell me if there is a way to remove the encryption from Data CDs by UNIX? Or does anyone know of a program that can remove the encryption?
I would much appreciate it!
Thanks,
-Peaves (2 Replies)
Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
I'm reading through this guide, BigAdmin Feature Article: Using Solaris JumpStart With the Solaris 10 OS for x86/x64 Platforms, and I was wondering if there was more to the bash scripts than just the example given (see above link) like for begin1 and begin2 and finish1 and finish2. I don't know... (3 Replies)
I am having trouble making this statement work. I am passing in a number value for the number of days to keep archive logs for and wanted to make sure that it is a number. I have a script that will return 1 for is a number and 0 for is not a number. I also want to make sure that the number is not... (2 Replies)
Hi All,
I have a (probably) very simple tar question on a Solaris box that I'm a little embarrassed to ask. After repeatedly checking man tar and searching for solutions online (I'm not sure of the correct "keywords" to look for)
The question is:
If I were to use the command:tar cf... (4 Replies)
Hello, I have a quick question that is not related to homework in any way shape or form (in case anyone wanted to know). My question is thus:
I have a file "temp" that has the two values say "5" and "3" (separated by a white space). Now, I want to simply write an if-else statement that reads... (10 Replies)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Hi, guys, I'm a new comer here. I'm studying Unix Shell and I met a problem confusing me a lot. Here it is :
script 1:
#!/bin/sh
# scriptname : do_increment
increment(){
sum=`expr $1 + 1`
return $sum # Return the value of sum to the script.
}
echo -n "The sum is "
increment $1 # Call... (2 Replies)
Sorry for stupid question, but why this script gives that output?
$ awk 'BEGIN { well=56789; print 1234$well }'
1234
I expected 123456789 (9 Replies)
Discussion started by: silyin
9 Replies
LEARN ABOUT OPENSOLARIS
logger
logger(1B) SunOS/BSD Compatibility Package Commands logger(1B)NAME
logger - add entries to the system log
SYNOPSIS
/usr/ucb/logger [-f filename] [-i] [-p priority] [-t tag] mm
[message]...
DESCRIPTION
The logger utility provides a method for adding one-line entries to the system log file from the command line. One or more message argu-
ments can be given on the command line, in which case each is logged immediately. If message is unspecified, either the file indicated with
-f or the standard input is added to the log. Otherwise, a filename can be specified, in which case each line in the file is logged. If
neither is specified, logger reads and logs messages on a line-by-line basis from the standard input.
OPTIONS
The following options are supported:
-i Log the process ID of the logger process with each line.
-f filename Use the contents of filename as the message to log.
-p priority Enter the message with the specified priority. The message priority can be specified numerically, or as a facility.level
pair. For example, `-p local3.info' assigns the message priority to the info level in the local3 facility. The default pri-
ority is user.notice.
-t tag Mark each line added to the log with the specified tag.
EXAMPLES
Example 1 Logging a message
The command:
example% logger System rebooted
will log the message `System rebooted' to the facility at priority notice to be treated by syslogd as other messages to the facility notice
are.
Example 2 Logging messages from a file
The command:
example% logger -p local0.notice -t HOSTIDM -f /dev/idmc
will read from the file /dev/idmc and will log each line in that file as a message with the tag `HOSTIDM' at priority notice to be treated
by syslogd as other messages to the facility local0 are.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO syslogd(1M), syslog(3C), attributes(5)SunOS 5.11 14 Sep 1992 logger(1B)