Oracle Solaris 10 9/10 설치 설명서: 사용자 정의 JumpStart 및 고급 설치

시작 스크립트 및 종료 스크립트를 사용하여 설치 기간 추적

시작 스크립트 및 종료 스크립트를 포함하여 설치 시작 시간 및 종료 시간을 추적할 수 있습니다. 다음 예를 참조하십시오.


예 4–2 시작 시간을 추적하는 시작 스크립트

# more begin-with-date
#!/bin/sh
#

echo
echo "Noting time that installation began in /tmp/install-begin-time"
echo "Install begin time: `date`" > /tmp/install-begin-time
echo
cat /tmp/install-begin-time
echo
#


예 4–3 종료 시간을 추적하는 종료 스크립트

# more finish*with*date
#!/bin/sh
#

cp /tmp/install-begin-time /a/var/tmp
echo
echo "Noting time that installation finished in /a/var/tmp/install-finish-time"
echo "Install finish time: `date`" > /a/var/tmp/install-finish-time
echo
cat /a/var/tmp/install-finish-time
#

시작 및 종료 시간은 finish.log 파일에 기록됩니다.