Hello,

I'm attempting to create a file list using an external script as
described in the following section of the manual: 
----quote----
# Any name beginning with a vertical bar (|) is assumed to be the name
of a program. This program will be executed on the Director's machine at
the time the Job starts (not when the Director reads the configuration
file), and any output from that program will be assumed to be a list of
files or directories, one per line, to be included.
--end quote--

My "get_newest_file.py" script accepts a path argument and returns the
name of the youngest file contained within the specified path. On the
command line it works like this:

$ get_newest_file.py /usr/local/backups/
/usr/local/backups/newfile.tar

My Bacula FileSet looks like this:

FileSet {
  Name = "Latest File"
  Include {
    Options { signature = MD5 }
    File = "'|get_newest_file.py /usr/local/backups/'"
  }
}

However, when the job runs I get the following error:

>> Could not stat '|get_newest_file.py /usr/local/backups/': ERR=No such
file or directory

I've confirmed that the script is in the path for the bacula user and
the user has read/write permissions on the files in question. I'm
guessing this is a simple syntax error on my part but I'm not sure what
the problem is.

Cheers,
-Jake

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to