null output

Discussion in 'Web Design & Coding' started by crono_logical, Feb 27, 2003.

  1. crono_logical

    crono_logical Bird Eater

    How do I redirect command line output of programs from standard output/standard error output to I guess the equivalent of /dev/null in a command prompt under XP/2K? I've tried stuff like "command > NULL 2> NULL2" but they just give me files with such names as if I redirected to a file.

    Thanks.
     
  2. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    I've seen this but it was a while back (several years) so I don't really remember. Have you tried "nul" with just one "l"?. Lowercase and uppercase?
     
  3. gajef

    gajef OSNN Addict

    Messages:
    76
    Actualy it is >nul:

    Nul is actual a device similar as a diskdrive :)

    Gert-Jan
     
  4. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Yeah, pretty close. Only one "l" anyway. :)
     
  5. crono_logical

    crono_logical Bird Eater

    Thanks, it worked great :)

    *removes the 100 MB log files from failed attempts*
     
  6. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    ROFL.