On Fri, May 24, 2013 at 3:29 AM, Nicolas Cauchie
<nico...@franceoxygene.fr> wrote:
>
> Hello all,
>
> I'd like to catch to log the output of the "backuppc_tarcreate" command :
> Done: 24 files, 167345 bytes, 1 dirs, 1 specials, 0 errors
>
> If I put in a script, for example :
> sudo -u backuppc /usr/share/backuppc/bin/BackupPC_tarCreate -t -h host -s \* 
> -n -1 . > /archive/host.raw)" >> /my/logfile.log
> nothing goes in my log file.
>
> Instead of, for example :
> du -sh /archive/* >>/my/logfile.log
>
> sends me to my logfile :
> 204K    /archive/folder1
> 366G    /archive/folder2
>
> Any idea ?

The message you want is written to stderr (file descriptor 2).  Use
2>>file to redirect it.

--
  Les Mikesell
    lesmikes...@gmail.com

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to