É possível incluir um script inicial e um script final para rastrear o momento inicial e o momento final de uma instalação. Veja os exemplos a seguir.
# 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 # |
# 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 # |
O momento final e inicial serão registrados no arquivo finish.log.