Sun(tm) Patch Check

  Patch Check で使う patchdiag.xref の場所が変わっていた

- patchdiag.xref
  http://patches.sun.com/reports/patchdiag.xref

- Sun(tm) Patch Check, Version 1.2
  http://jp.sunsolve.sun.com/pub-cgi/show.pl?target=patchk

- 下のようなスクリプトを書いてあげれば楽に使える.結果は result-{日時}.txt へ.

#!/bin/sh

# the OS version; this must be a SunOS number
os_ver=5.8

# the architecture of the system: sparc/i386
arch=i386

if [ -f patchdiag.xref ]
then
    rm patchdiag.xref
fi

wget http://patches.sun.com/reports/patchdiag.xref
showrev -p > showrev.txt
pkginfo -l > pkginfo.txt

now=`date '+%Y-%m-%d-%H-%M-%S'`
perl patchk.pl -x patchdiag.xref -p pkginfo.txt showrev.txt $os_ver $arch > result-$now.txt