Rob Becker <rbecker <at> 2co.com> writes: > > 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. > Other then thats a interesting way of getting from proper change control it ain't going to work without shell scripts or other trickery.
Each runscript in bacula not being a console command is run via a bpipe (not the plugin) e.g. the program forks and performs an execvp in the child and the output is captured in the parent via a pipe. So any fancy shell escapes won't work as execvp just simply executes the arguments you give it without a shell being invoked. The only way to probably get around it is via a sh -c "cmdline" and given you do rather elementary things you might get away with that. In the last example you execvp a shell and then you can do the shell redirection etc. Marco ------------------------------------------------------------------------------ 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users