cancel
Showing results for 
Search instead for 
Did you mean: 

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
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