on 01-26-2019 11:44 PM
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?
Correct. Your service account needs access to folders and files read and modified by the external program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the Task Manager, Processes tab. The Username for the al_jobserver and al_engine executables..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. The script runs with the DS credentials, i.e. the username DS was installed with.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.