Piping error messages to a file?

This is a discussion on Piping error messages to a file? within the C Programming forums, part of the General Programming Boards category; I keep trying to pipe all my 50+ error messages to a file, so I can use them rather than ...

  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
    32,824
    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, 04:39 AM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  3. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 11: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21