Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'List all the Intel-ready apps on your Mac' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
List all the Intel-ready apps on your Mac
Authored by: gidds on Jan 18, '06 03:16:32PM
Indeed.

More detail: in the Unix world, every process gets three standard streams assigned to it: standard input (stdin), standard output (stdout), and standard error (stderr); with file descriptors 0, 1, and 2 resp.

Standard input and output are self-explanatory; they usually go from keyboard and to screen unless you redirect them with > and < or |.

Standard error is another output stream that's used for error messages; it keeps them from getting mixed up with the proper output, and ensures you see errors even if you've redirected stdout. (Another difference is that whereas stdout is buffered for speed, stderr is unbuffered so you get to see your errors immediately.)

It's a little more difficult to redirect stderr: you have to use the more general redirection syntax and precede the > with the file descriptor of the stream to redirect. Remember that stderr's file descriptor is 2? So 2> redirects stderr in the same way that > (or 1>) redirects stdout.

HTH!

---
Andy/

[ Reply to This | # ]