Re: [Bacula-users] RunScript and Redirecting output.
2012-04-02 07:06:14
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
|
|
|