1753867 Members
7422 Online
108809 Solutions
New Discussion юеВ

Re: script

 
kacou
Regular Advisor

script

1- is it possible to write a script to extract the error messages in the syslog?
2- does anyone show me the command which can permit us to know if a server has rebooted or no ?
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: script

Hi:

> 1- is it possible to write a script to extract the error messages in the syslog?

# grep /var/adm/syslog/syslog.log

> 2- does anyone show me the command which can permit us to know if a server has rebooted or no ?

# who -b

Regards!

...JRF...
T G Manikandan
Honored Contributor

Re: script

for 2:

who -b
uptime