Bacula-users

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

2011-08-24 09:12:29
Subject: [Bacula-users] Script Client Run and ">"
From: Yuri Timofeev <tim4dev4list AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 24 Aug 2011 16:09:33 +0300
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"
------------------------------------------------------------------------------
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>