Skip to Content

Batch File Running On DS Server But Not When Data Services Executes It

I created a Visual Basic script to create a Telnet session, execute commands, and write to a log file on the Windows server that hosts our Data Services platform. When I execute this script manually it runs and populates the log file, but when I execute the same script through Data Services, the Data Services log says it ran successfully but the log file doesn't contain data.

I'm running this in a script component in Data Services:

print(exec('cmd.exe','C:\DS_Files\Veeder\Scripts\VeederScript_HumanReadable.vbs "[$StoreNumber]"',8)); 

I've also created a Batch file to execute the VB script, which also runs successfully when executed manually, but also doesn't update my log file when executed by Data Services. I also tried this by using 'cscript' instead of 'cmd.exe' with the same result. Is this a permissions issue?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Jan 28 at 09:48 PM

    Yes. The script runs with the DS credentials, i.e. the username DS was installed with.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 04 at 04:12 PM

    In the Task Manager, Processes tab. The Username for the al_jobserver and al_engine executables..

    Add comment
    10|10000 characters needed characters exceeded

    • I can see our service account is running the al_jobserver and al_engine, which it should be. So now that service account user needs to have permissions to make changes that the batch file/VB script is attempting?

  • Feb 25 at 09:44 AM

    Correct. Your service account needs access to folders and files read and modified by the external program.

    Add comment
    10|10000 characters needed characters exceeded