  | |  | redirect error output from rpm? | redirect error output from rpm? 2004-06-17 - By Raul Acevedo
Back 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
shane c branch wrote:
> I am trying to redirect the output from a failed uninstallation of an > rpm package so that I can send the error to the programmer. I am doing > this with following commmand: > > #rpm -e packagename >> ~/unist.txt > > This created the file, but the error messages were not written to the > text file. > > I also tried > > #rpm -e packagename | >> ~/unist.txt > > Again, the text file is created, but it still doesn't contain any > information. > > What am I doing wrong? > > Thanks. > -- > regards, > > shane > > > -- > Shrike-list mailing list > Shrike-list@(protected) > https://www.redhat.com/mailman/listinfo/shrike-list
-- Shrike-list mailing list Shrike-list@(protected) https://www.redhat.com/mailman/listinfo/shrike-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |