Adrian Smith wrote:
> 
> i'm having some trouble with an RPM, getting lots of error messages.
> i'm installing from the command line
> is there any way to redirect the output to a txt file, such as in DOS one would type
> "dir > dir.txt"
> 
ummmmmmmmmmmmm yes :-)

You redirect the same way actually, > will redirect standard output to a
file >> will append standard output to a file (> just overwrites it) <
redirects standard input to be used from a file. 2> redirects standard
error which is most error messages.  If you're trying to redirect error
messages you can use 2>.  If you want standard output and standard error
to go to the same file, you would use: 2> somefile.txt 1>&2  voila :-)

Oh and you can use the | (pipe) symbol to pipe the output from one
command to another command.  For example, with me, Netscape hangs every
so often.  So at the command line, I just execute ps -ef | grep
"netscape" that will show me the process id numbers for Netscape, since
the output for the ps command is going to grep, and grep is looking
through that output for the string "netscape".

Dan

Reply via email to