Results 1 to 4 of 4

Thread: capturing ALL output from terminal to file

  1. #1
    Join Date
    Sep 2009
    Beans
    134

    capturing ALL output from terminal to file

    I would like to capture all output spewed to a terminal session
    including processes that are terminated that were invoked from a script
    running in a terminal window.

    this is beyond capturing just stderr and stdout ....

    for example

    {
    ./script
    } 2> stderr.cap 1>stdout.cap

    if script is terminated (including because of memory violations)
    I get spewed output to the terminal ...
    I would like to capture that spewing to a file automatically or to a bit
    bucket /dev/null

    Is there another filehandle which can be redirected to do this?
    If so how or is there another way???

  2. #2
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,059
    Distro
    Ubuntu Development Release

  3. #3
    Join Date
    Sep 2009
    Beans
    134

    Re: capturing ALL output from terminal to file

    philinux

    'snip' ????

  4. #4
    Join Date
    Jun 2009
    Location
    0000:0400
    Beans
    Hidden!

    Re: capturing ALL output from terminal to file

    Quote Originally Posted by linuxcss View Post
    philinux

    'snip' ????
    Probably means he had an idea and then realized it wouldn't work. There's no way to delete a post on these forums.

    'script' might do what you want.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •