how to redirect verbose to file?

Cameron Simpson cs at zip.com.au
Thu Apr 29 00:58:19 UTC 2010


On 28Apr2010 16:25, Stainforth, Matthew (SD/DS) <Matthew.Stainforth at gnb.ca> wrote:
| Try /opt/bp_backupme.pl -v 2>&1 > filename.txt

Gah. Totally backwards. Tested this propery, have you?

| > 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.)

Should 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.

Show us the error message.
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

People murder a little of each other here on the net every day.
        - dave at jato.jpl.nasa.gov (Dave Hayes)




More information about the redhat-list mailing list