Output of last shell command

前端 未结 11 1555
渐次进展
渐次进展 2020-12-29 02:49

Not until midway through a 3 hour build script, I\'ll remember that I want to see something at the beginning of the output after it\'s done. At this point I\'ve exceeded th

11条回答
  •  抹茶落季
    2020-12-29 03:13

    script(1) is exactly what you need:

    script
    make
    exit
    vim typescript
    

    The script program will start a new shell and save input and output to the typescript file. When you're done, just close the shell with exit or ^D. If you'd rather not start a new shell but just run your build, you can use: script -c .

提交回复
热议问题