[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash equivalent to DOS /p




Yeah, thats what I did first and said it didn't work. From all the imput I think the following is a clear way to express it:

/command/ 2>&1 | less

where:
- the "command" is the specific function or action to be performed
- "2>" is the instruction to direct (the errors?) to stderr
- "&1" is the instruction to duplicate these error messages to stdout
- "| less" is the instruction to output the result of the command to less.

Is this right?  Just out of curiosity what exactly is stderr and stdout?

geek-speek;-)

There are three files available to (most) Unix programs without them opening them:
stdin for reading stuff
stdout for writing regular reports
stderr for writing error reports.




--

Cheers
John

-- spambait
1aaaaaaa@computerdatasafe.com.au  Z1aaaaaaa@computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/



Reply to: