Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dmesg sh

Status
Not open for further replies.

Any1canc

IS-IT--Management
Apr 4, 2006
9
0
0
US
Could someone provide me a snapshot /usr/sbin/dmesg sh script? Somehow some wise guy decided to muck with it an I'm the poor sole that needs to fix it. I commented out the hosed line but i would like to see what might have gotten changed.
 
This is Solaris 9's version...

#!/usr/bin/sh
#
# Copyright (c) 1998,2001 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident "@(#)dmesg.sh 1.2 01/09/03 SMI"

/usr/bin/echo
/usr/bin/date
/usr/bin/cat -sv `/usr/bin/ls -tr1 /var/adm/messages.? 2>/dev/null` \
/var/adm/messages | /usr/bin/tail -200
 
Thanks so much that's what i'm looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top