BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: shelll Patch list Check Á¶È¸¼ö: 5096


#!/usr/local/bin/perl -w
#
# List all patches installed according to /var/sadm/patch
# including the date it's been installed, the patch number
# and the Synopsis included in the README file.
#
# Pretty convenient to keep a log of installed patches on
# a server.

use strict;
use File::stat;
use Time::Local;

my $patch;
my $path = "/var/sadm/patch/";
my @patches = `ls -ogtr $path | awk '{ print \$7; }'`;
my @months = ( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' );

foreach $patch ( @patches )
{
chop( $patch );
if( $patch ne "" )
{
my $patchtime = stat( $path . $patch )->mtime;
my ( $sec, $min, $hour, $mday, $mon, $year ) = ( localtime( $patchtime ) )[0,1,2,3,4,5];
$year += 1900;

my $synopsis = `head ${path}${patch}/README.$patch | grep -h "Synopsis: " 2>/dev/null | sed 's/Synopsis: //'`;
chop( $synopsis );

if( $synopsis )
{
printf( "%2d %s %.4d %.2d:%.2d:%.2d %s %s\n", $mday, $months[$mon], $year, $hour, $min, $sec, $patch, $synopsis );
}
}
}



°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2002/08/28 17:44 from 210.121.188.5

  Å° ½ºÆ®·ÎÄ¿ ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ Kick  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡