Bacula-users

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

2012-04-02 07:13:28
Subject: Re: [Bacula-users] RunScript and Redirecting output.
From: Rob Becker <rbecker AT 2co DOT com>
To: Graham Keeling <graham AT equiinet DOT com>, "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 2 Apr 2012 11:11:41 +0000
I'd assume putting everything into a shell script would work, but that's 
exactly what I'm trying to get away from.  Putting a new script on every server 
would require change control, documentation....etc.   If I'm able to control 
everything from the Director I can side step some of those processes.




-----Original Message-----
From: Graham Keeling [mailto:graham AT equiinet DOT com]
Sent: Monday, April 02, 2012 7:04 AM
To: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] RunScript and Redirecting output.

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

Follow 2Checkout! [http://assets.2co.com/legal-disclaimer/facebook.png] 
<http://www.facebook.com/pages/2Checkout/164868080225399>  
[http://assets.2co.com/legal-disclaimer/twitter.png] 
<https://twitter.com/2checkout>  
[http://assets.2co.com/legal-disclaimer/linkedin.png] 
<http://www.linkedin.com/company/2checkout.com>

________________________________

CONFIDENTIALITY STATEMENT: All information included in this communication, 
including attachment(s), is intended solely for delivery to and authorized use 
by the addressee(s) identified above, and may contain privileged, confidential, 
proprietary and/or trade secret information entitled to protection and/or 
exempt from disclosure under applicable law. If you are not the intended 
recipient, please note that any use, distribution or copying of this 
communication is unauthorized and may be unlawful. If you have received this 
communication in error, please notify sender immediately and delete this 
communication from your computer.

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