Recording the session
# script -t 2>~/upgrade-wheezystep.time -a ~/upgrade-wheezystep.scriptor similar. If you have to rerun the typescript (e.g. if you have to reboot the system) use different
step
values to indicate which step of the upgrade you are logging. Do not put the typescript file in a temporary directory such as /tmp
or /var/tmp
(files in those directories may be deleted during the upgrade or during any restart).The typescript will also allow you to review information that has scrolled off-screen. If you are at the system's console, just switch to VT2 (using Alt+F2) and, after logging in, use
less -R ~root/upgrade-wheezy.script
to view the file.After you have completed the upgrade, you can stop script by typing
exit
at the prompt.If you have used the -t switch for script you can use the scriptreplay program to replay the whole session:
# scriptreplay ~/upgrade-wheezy.time ~/upgrade-wheezy.script
-f Opróżnia wyjście po każdym zapisie. Jest to użyteczne w przypadkuwspółpracy kilku osób: pierwsza wykonuje "mkfifo foo; script -ffoo", a druga w czasie rzeczywistym nadzoruje jej poczynania,używając "cat foo".
Brak komentarzy:
Prześlij komentarz