Bacula-users

Re: [Bacula-users] Script Client Run and ">"

2011-08-24 09:21:44
Subject: Re: [Bacula-users] Script Client Run and ">"
From: Graham Keeling <graham AT equiinet DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 24 Aug 2011 14:18:57 +0100
On Wed, Aug 24, 2011 at 04:09:33PM +0300, Yuri Timofeev wrote:
> Hi
> 
> Problem in the symbol of ">".
> File /tmp/test.log is not created.
> Running only the first part of the command "ls -la".
> "> /tmp/test.log" not worked.
> 
> 
> Config file:
> 
> Job {
>   ...
>   Client Run Before Job = "ls -la > /tmp/test.log"
> }
> 
> 
> Console log:
> 
> fd JobId 32287: shell command: run ClientRunBeforeJob "ls -la >
> /tmp/test.log"
> fd JobId 32287: ClientRunBeforeJob: ls: >: No such file or directory
> fd JobId 32287: ClientRunBeforeJob: ls: /tmp/test.log: No such file or
> directory
> fd JobId 32287: Error: Runscript: ClientRunBeforeJob returned non-zero
> status=2. ERR=Child exited with code 2
> 
> 
> 
> This is just a test. My working version will be "mysqldump ...> dump.sql"

As a workaround, you could try putting your commands in a script and running
the script instead.


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
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>