Results 1 to 2 of 2

Thread: Log any output from shell script to txt file

  1. #1
    Join Date
    May 2008
    Location
    0100110101101001
    Beans
    1,229
    Distro
    Ubuntu 12.04 Precise Pangolin

    Log any output from shell script to txt file

    Hello all. I'd like to log any output on the screen to a text file in my shell script. Any ideas on how to accomplish this?
    We have no Great War, no Great Depression. Our Great War is a Spiritual War. Our Great Depression is our lives. - Tyler Durden

  2. #2
    Join Date
    May 2008
    Location
    0100110101101001
    Beans
    1,229
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Log any output from shell script to txt file

    This seemed to be what I needed.

    http://stackoverflow.com/questions/2...n-shell-script

    Code:
    exec &> output.txt
    We have no Great War, no Great Depression. Our Great War is a Spiritual War. Our Great Depression is our lives. - Tyler Durden

Tags for this Thread

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
  •