01-25-2010
what's your problem here? the output or system rebooted by itself ? provide necessary log outputs eg messages during the time.
include h/w type, kernel patch level and OBP level.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Can someone advise me how to find the last system rebooted date(s)? Thanx N Regards,
Hush (2 Replies)
Discussion started by: hush
2 Replies
2. Solaris
Hi Guru's
Can any want here could explain to me the different between soft reboot and hard reboot .
Best Regards
Seelan (3 Replies)
Discussion started by: seelan3
3 Replies
3. Shell Programming and Scripting
Hello friends,
I am looking for a script or method that can display all the dates between any 2 given dates.
Input:
Date 1
290109
Date 2
010209
Output:
300109
310109
Please help me. Thanks. :):confused: (2 Replies)
Discussion started by: frozensmilz
2 Replies
4. Programming
Don't know if it is important: Debian Linux / MySQL 5.1
I have a table:
media_id int(8)
group_id int(8)
type_id int(8)
expiration date
start date
cust_id int(8)
num_runs int(8)
preferred_time int(8)
edit_date timestamp ON UPDATE CURRENT_TIMESTAMP
id... (0 Replies)
Discussion started by: vertical98
0 Replies
5. Emergency UNIX and Linux Support
Hi guys,
For my wiki site I need to fix 1400 pages that use the wrong date format, most pages (not all) use eg. 1988]] I need to change that to (1988)]]
The date range goes back to 1400 so I guess I need to do the following
ssh into my server,
dump mysql database
vi .sql dump
search... (20 Replies)
Discussion started by: lawstudent
20 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am trying to print the dates that falls between 2 date variables into a file. Here is the example.
$BUS_DATE =20120616
$SUB_DATE=20120613
Output to file abc.txt should be : 20120613,20120614,120120615,20120616
Can you pls help me accomplish this in LINUX.
Thanks... (5 Replies)
Discussion started by: dsfreddie
5 Replies
7. Shell Programming and Scripting
HI,
i have row like this
HHH100037440313438961000201001012012073110220002 N
in this i have 2 dates in pos 25-32 and 33-40 , so based upon the se two dates , i need to generated records between these two values
so in the above record 20100101 and 20120731
need to genearte rows like this... (4 Replies)
Discussion started by: sathishsr
4 Replies
8. Solaris
Hello,
I have a weird think going on, on one of my servers.
vi filename
"/var/tmp" No such file or directory
What going on here? (4 Replies)
Discussion started by: bitlord
4 Replies
9. UNIX for Advanced & Expert Users
Hi Am Using Unix Ksh ...
I have a Table called date
select * from date ;
Date
01/02/2013
06/02/2013
I need the output as
Missing Date
01/02/2013
02/02/2013
03/02/2013
04/02/2013
05/02/2013
06/02/2013 (2 Replies)
Discussion started by: Venkatesh1
2 Replies
10. Shell Programming and Scripting
Hi All,
I have 2 dates in mm/dd format.
sdate=10/01 (October 01)
edate=10/10 (October 10)
I need the dates in between these 2 dates like below.
10/01
10/02
10/03
10/04
10/05
10/06
10/07
10/08 (1 Reply)
Discussion started by: jayadanabalan
1 Replies
logger(1) User Commands logger(1)
NAME
logger - add entries to the system log
SYNOPSIS
logger [-i] [-f file] [-p priority] [-t tag] [message] ...
DESCRIPTION
The logger command 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 this is unspecified, either the file indicated with -f
or the standard input is added to the log. Otherwise, a file 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:
-ffile Uses the contents of file as the message to log.
-i Logs the process ID of the logger process with each line.
-ppriority Enters 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
priority is user.notice.
-ttag Marks each line added to the log with the specified tag.
OPERANDS
The following operand is supported:
message One of the string arguments whose contents are concatenated together, in the order specified, separated by single space
characters.
EXAMPLES
Example 1: Examples of the logger command
The following example:
example% logger System rebooted
logs the message `System rebooted' to the default priority level notice to be treated by syslogd as are other messages to the facility
user.
The next example:
example% logger -p local0.notice -t HOSTIDM -f /dev/idmc
reads from the file /dev/idmc and logs each line in that file as a message with the tag `HOSTIDM' at priority level notice to be treated by
syslogd as are other messages to the facility local0.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of logger: LANG, LC_ALL, LC_CTYPE, LC_MES-
SAGES, and NLSPATH.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
mailx(1), write(1), syslogd(1M), syslog(3C), attributes(5), environ(5), standards(5)
SunOS 5.10 1 Feb 1995 logger(1)