Menu

#48 hand-started it works, but it doesn't work script-started

open
nobody
None
5
2007-12-06
2007-12-06
Anonymous
No

Hello,

I've written a batch file which in "error-case" should send an email to an administrator. For that the batch calls blat.exe with some arguments.
So if I start the batch manually, it works fine and send the Email.
But when the batch file ist started by script, it calls blat.exe, blat begins and aborts immediately with "unknow n error code 2 when trying to open SCF_Service_error.txt"
I suppose the Problem is, that the batch is started under another context such as system instead of user. But I couldn't find anything to eliminate this behaviour.
Please help me. Thanks a lot.

Thomas

Discussion

  • Chip

    Chip - 2008-03-15

    Logged In: YES
    user_id=800692
    Originator: NO

    Which version of Blat are you using, and is some other application holding SCF_Service_error.txt open which might prevent Blat from accessing it?

    Chip

     
  • Nobody/Anonymous

    Is your batch file started by a scheduled task? If so, you'll have to add the account the batch file is run with to the 'Log on as batch job' entry within your User Rights Assignments of your domain. If the batch file is started by some other method, I would check to make sure the account being used has the appropriate permissions to SCF_Service_error.txt.

     

Log in to post a comment.

MongoDB Logo MongoDB