1826445 Members
3863 Online
109692 Solutions
New Discussion

fbackup's log?

 
JRiggs
Occasional Contributor

fbackup's log?

how do i output the log both on a terminal and a file at the same time while fbackup is running?

hope i could here from guru's out there..

thanks
The choices you get are the choices you make
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: fbackup's log?

Hi Jasper,

Try this although you must specify a tape output other than stdout; (i.e.) don't use -f -.

fbackup -v -g mygraph -c myconfig -f /dev/rmt/1m 2>&1 | tee /tmp/mylog

The idea is to redirect stderr (fdes 2) to stdout (fdes 1) and then pipe stdout to the tee command. Tee then writes each line of its input to /tmp/mylog and to stdout (the terminal).

That should do the trick, Clay

If it ain't broke, I can fix that.