Bacula-users

Re: [Bacula-users] RunBeforeJob and Windows command line

2008-09-09 13:00:22
Subject: Re: [Bacula-users] RunBeforeJob and Windows command line
From: ebollengier <eric AT eb.homelinux DOT org>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 9 Sep 2008 10:00:15 -0700 (PDT)
Hello,

Just try to escape the space between Program and Files.
Bacula (in fact the system) attempts to run c:\program.exe with
Files\xxx\xxx as argument.
You can also replace \\ by /.

Bye

Brian Debelius wrote:
> 
> Hi,
> 
> Bacula version 2.4.2 on Windows 2003
> 
> I am having trouble constructing my command string for my RunBeforeJob.
> 
> Im my job I have
>   RunBeforeJob = "\"c:\\program files\\bacula\\bin\\adminjob.cmd\" 
> MarkAsUsed"
> 
> When the Job runs Bacula reports
>    05-Sep 14:17 elkton-dir JobId 2414: BeforeJob: 'c:\program' is not 
> recognized as an internal or external command.
> 
> So somehow the command line is being truncated at the space.  Does 
> anyone know the right combination of quotes to make this work?
> 
> Thanks
> brian
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
View this message in context: 
http://www.nabble.com/RunBeforeJob-and-Windows-command-line-tp19336954p19396738.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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>