On Wednesday 26 October 2005 15:17, Russell Howe wrote:
> Kern Sibbald wrote:
> > If I see that users just cannot "get" or tolerate Python scripting, then
> > falling back to Phil's suggestion would be a solution.
>
> I'm sure it must be fairly easy to write a short python script to
> perform actions in a way which doesn't require python knowledge.
Yes, this is true. Probably I need at least one example of executing a shell
script from within a Python script.
import os
os.system("path-to-some-shell-script")
Just put the above system call in the correct event and that is all there is
too it. Of course adding a few arguments and testing the job exit status
require a few additional simple statements. The sample DirStart.py code in
JobEnd reports the JobId, Client, and Exit status of the job.
--
Best regards,
Kern
(">
/\
V_V
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users