on 06-14-2018 9:38 AM
Hi Experts.
I have found that when I run my script, it is ran by the SYSTEM user and not my current user. My issue here is that after running the script below, our application would run a synchronization script for Mobilink. From there, the script is failing since it is running another DBENG17.exe process under my user and not by the SYSTEM user. Any suggestions how to ensure that dbeng17 is only ran by one process?
@echo off
:step1
echo creating db service
dbsvc -as -s auto -y -w Mosis "%ProgramFiles%\SQL Anywhere 17\Bin64\dbeng17.exe" -n Mosis -x "tcpip(port=2638)" -c 8m "C:\Users\*user*\Documents\Eclipse Oxygen\Application\db\mosis.db"
if %errorlevel% == 0 goto step2
echo ASA service already started
goto end
:step2
echo starting db service
dbsvc -u Mosis
:step3
echo ASA start successful
:end
exit
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.