Bacula-users

Re: [Bacula-users] RunScript and Redirecting output.

2012-04-02 07:06:14
Subject: Re: [Bacula-users] RunScript and Redirecting output.
From: Graham Keeling <graham AT equiinet DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 2 Apr 2012 12:04:27 +0100
On Mon, Apr 02, 2012 at 10:56:43AM +0000, Rob Becker wrote:
> RunScript {
>     RunsWhen  = Before
>     Runs On Client = Yes
>     Command = "/bin/echo `/bin/hostname`  >    
> /usr/local/bacula/working/restore_file"
>    Command = "/bin/date +%%F >> /usr/local/bacula/working/restore_file"
>   }
...
> It looks like Bacula just ignores everything after, and including, the
> greater than sign.

I think that the problem is probably that your greater than signs are shell
features.
You could try putting your commands into a shell script and running the script
instead.


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>