System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Output redirection vgdisplay Linux 5.1

 
SOLVED
Go to solution
Giuseppe_13
Frequent Advisor

Output redirection vgdisplay Linux 5.1

Executing:
#vgdisplay > outfile

the size of file "outfile" is 0 byte

this problem has been found in Linux Red Hat 5.1

Is there a patch to fix the problem ?

Thanks
2 REPLIES
Ivan Ferreira
Honored Contributor
Solution

Re: Output redirection vgdisplay Linux 5.1

Try with:

vgdisplay 2> outfile
vgdisplay > outfile 2>&1
vgdisplay | tee outfile
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Giuseppe_13
Frequent Advisor

Re: Output redirection vgdisplay Linux 5.1

Only

vgdisplay | tee outfile

writes into file.

Thanks