On Wed, Mar 07, 2001 at 10:46:26PM +0800 or so it is rumoured hereabouts,
Horace G. Friend III thought:
> Hi Rich,
>
> Here's the output from man procmail | col -b > procmail.txt
>
> sh: -c: line 2: syntax error: unexpected end of line
> Error executing formatting or display command.
> System command (cd /usr/share/man ; (echo -e ".pl 11i"; /usr/bin/gunzip -c
>/usr/share/man/man1/procmail.1.gz | /usr/bin/gtbl | /usr/bin/groff -S -Tlatin1 -mando
>| /usr/bin less -isr) exited with status 2.
> No manual entry for procmail
Do you get anything from
man procmail
? I'm inclined to think the man page for procmail is not installed. try
"man ls" (you can be pretty sure of having that manpage..)
>
> That's it. So what happened here and what's next? Thanks.
>
> Had a difficult time writing the above. How can I catch these error msgs into a text
>file for reading into another editor such as in here?
Do
man procmail | col -b > procmail.txt 2> errors.txt
The redirector operator ">" works on a number of "streams".
1. STDOUT ("Standard out" which is the "normal" output from a program)
Useage: 'command 1> stdout.txt'
or
'command > stdout.txt'
2. STDERR ("Standard error" which usually carries error/debug messages)
Useage: 'command 2> stderr.txt'
">" or "1>" sends standard out to whatever you specify.
"2>" sends standard error to whatever you specify.
Conor
--
Conor Daly <[EMAIL PROTECTED]>
Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
10:42pm up 8 days, 9:16, 0 users, load average: 0.00, 0.00, 0.00
Hobbiton.cod.ie
9:44pm up 8 days, 7:54, 1 user, load average: 0.12, 0.11, 0.04