Operating System - Linux
1828411 Members
3477 Online
109977 Solutions
New Discussion

Re: 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 2
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