BackupPC-users

[BackupPC-users] How can I print bash script errors to BackupPC log?

2014-05-20 07:03:38
Subject: [BackupPC-users] How can I print bash script errors to BackupPC log?
From: 李欣 <n3228 AT ndensan.co DOT jp>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 20 May 2014 20:02:06 +0900
Hi all,

How can I print the output of my bash script to BackupPC log file.

Here is what I tried,
and it does not work.
#!/bin/bash

echo "Hello world" 1>&2;
exit 1;

I also set UserCmdCheckStatus to true in order to let BackupPC detect errors from scripts.

Thanks.
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>