Thread: Piping error messages to a file?

  1. #1
    Unregistered
    Guest

    Piping error messages to a file?

    I keep trying to pipe all my 50+ error messages to a file, so I can use them rather than have them all scroll past to fast to realize what I'm doing.

    This is in Unix:

    I have tried piping to an outfile in the cc command of my makefile.

    I have even tried piping after the make command.

    Neither of these options have worked for me..

    Any ideas how to do it... or can it even be done?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    In csh
    make >& logfile

    In every other shell
    make > logfile 2>&1

  3. #3
    Unregistered
    Guest
    Thank you.

    I appreciate the help you give, you always seem to answer my questions (on the occaisons I post) in a very timely fashion and they always help. So once again thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  3. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  4. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 10:57 AM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM