Frank Sweetser schrieb:
>> (Client)RunBefore/AfterJob:
>> sticking commands one after another on one line separated by semicolon
>> seems not to work propperly.
>
> That's because treating the semicolon as a command separator is a function of
> the shell. The problem isn't that you're not escaping the shell characters,
> the problem is that there's no shell there to treat them as special characters
> in the first place. From the RunScript section of
> http://bacula.org/en/rel-manual/Configuring_Director.html#SECTION001430000000000000000
>
> --8<--
> In addition, the command string is parsed then fed to the OS, which means that
> the path will be searched to execute your specified command, but there is no
> shell interpretation, as a consequence, if you invoke complicated commands or
> want any shell features such as redirection or piping, you must call a shell
> script and do it inside that script.
> --8<--
>
thanks for this information Frank, I supposed so.
--
Ralf Brinkmann
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|