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

Re: redirect error output from rpm?



Raul Acevedo wrote:

If you are using bash, add 2>&1 to redirect stderr (file descriptor 2)
to stdout (file descriptor 1):

# rpm -e packagename >> ~/unist.txt 2>&1

If you are using csh or tcsh, you add & immediately after the >>
redirect command:

# rpm -e packagename >>& ~/unist.txt

Raul


I am using bash. Thank you, that worked perfectly.



-- regards,

shane



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