poniedziałek, 10 czerwca 2013

Recording the session

Recording the session

It is strongly recommended that you use the /usr/bin/script program to record a transcript of the upgrade session. Then if a problem occurs, you will have a log of what happened, and if needed, can provide exact information in a bug report. To start the recording, type:
# script -t 2>~/upgrade-wheezystep.time -a ~/upgrade-wheezystep.script
or 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 przypadku
             współpracy kilku osób: pierwsza wykonuje "mkfifo foo; script -f
             foo", a druga w czasie rzeczywistym nadzoruje jej poczynania,
             używając "cat foo".

Brak komentarzy:

Prześlij komentarz

Ginekolog dr n. med. Piotr Siwek

Gabinet ginekologiczny specjalista ginekolog - położnik dr n. med. Piotr Siwek