Agreed Troy!  Add the .exe to the path name. I ran into this very  
same issue 'assuming' the extension would otto-magically be added. So  
much for assuming....

Erich


On Jan 19, 2007, at 12:40 AM, Troy Daniels wrote:

> Hi Scott,
>
> I might be completely wrong but have you tried to append .exe to the
> ntbackup command?
>
> On my systems at least the full path is c:\WINDOWS\system32 
> \ntbackup.exe
>
> Microsoft normally tries to be nice and append the .exe extension
> automatically, but something may have changed in the latest version  
> that
> interferes with that. However, it also hides the extension in by  
> default
> in Explorer which leads to confusion more often than not in my  
> experience.
>
> What version were you running before upgrading? And what version of
> Windows are you running?
>
> The answers to the above might help others answer your original  
> question.
>
> Hope this helps,
>
>
> Troy Daniels.
> Perth Systems Admin.
> iTouch Australia (pty) ltd.
>
> Scott Ruckh wrote:
>> I am trying to call a .BAT file using ClientRunBeforeJob.  The  
>> config used
>> to work fine before upgrading the Windows FD 2.0.1.
>>
>> It looks like the syntax in my bacula-dir.conf file is correct.   
>> It looks
>> like the .BAT file is being called, and for some reason there is a  
>> problem
>> with the .BAT file.
>>
>> Taking Bacula out of the equation, running the .BAT file works  
>> without any
>> problem.
>>
>> Possibly the environment/context that the Bacula FD runs under is
>> different then the user I am using to run the .BAT file.  The  
>> security on
>> the actual files appears to be correct for the SYSTEM user, which  
>> is what
>> I believe is the context for the Bacula FD.
>>
>> Perhaps someone can lend some assistance.
>>
>> Here is what is reported from Bacula's messages.
>>
>> ClientRunBeforeJob: run command ""C:/Program Files
>> (x86)/Bacula/bin/backup_systemstate.bat""
>> ClientRunBeforeJob:
>> ClientRunBeforeJob: C:\WINDOWS\system32>C:\WINDOWS\system32\ntbackup
>> backup systemstate /F C:\SystemState\systemstate.bkf
>> ClientRunBeforeJob: 'C:\WINDOWS\system32\ntbackup' is not  
>> recognized as an
>> internal or external command,
>> ClientRunBeforeJob: operable program or batch file.
>> ClientRunBeforeJob:
>> ClientRunBeforeJob: C:\WINDOWS\system32>exit 0
>>
>> Yes, C:\WINDOWS\system32\ntbackup, does exist and is the correct  
>> PATH.
>>
>> Thanks.
>>
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to