RE: how to redirect verbose to file?

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

 



Worked like a champ. Thank you! 

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]
On Behalf Of Stainforth, Matthew (SD/DS)
Sent: Wednesday, April 28, 2010 3:25 PM
To: redhat-list@xxxxxxxxxx
Subject: RE: how to redirect verbose to file?

Try /opt/bp_backupme.pl -v 2>&1 > filename.txt

> -----Original Message-----
> From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list- 
> bounces@xxxxxxxxxx] On Behalf Of Anne Moore
> Sent: Wednesday, April 28, 2010 4:20 PM
> To: redhat-list@xxxxxxxxxx
> Subject: how to redirect verbose to file?
> 
> HI All,
> 
> I'm struggling with this problem. I have a cron job that runs down a 
> list of files being backed up. It's called "bp_backupme.pl". As it's 
> backing up, (in verbose -v mode), it outputs a list of files being 
> backed up.
> 
> Does anyone know how I would redirect that files output into a file? 
> (I tried the >> filename.xt or >filename.txt, but it doesn't work.)
> 
> The script runs like this: /opt/bp_backupme.pl -v
> 
> I tried the: /opt/bp_backupme.pl -v  > filename.txt
> 
> But, it just errors out. If I just run the script normally, everything 
> runs smoothly and it lists the files on the screen.
> 
> Any idea how to grab that file list into a file?
> 
> Thank you!
> 
> Anne
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux