Terminate service error

Discuss RoboTask here
Post Reply
itrider
Posts: 3
Joined: Thu Jul 12, 2007 8:29 am

Terminate service error

Post by itrider »

I am running into an issue where a service that is started by robotask (e.g. start a program) outputs an 'Access Denied' error when the script issues the "Terminate Service" command.NOTE: if I manually run the program (in this case Internet Explorer) and issue the "Terminate Service" command, the service exits successfully.Here is the script:;**********************;* RoboTask Task file *;* Do not edit!       *;********************** [Root]ActionAfterRun=INTEGER|0Actions=FOLDERAutomat=INTEGER|0CatID=INTEGER|0ContinueOnError=INTEGER|0ExternalName=STRING|"Task1"Hide=INTEGER|0ID=INTEGER|758566932Name=STRING|"Run ""iexplore.exe""..."Priority=INTEGER|3RunOnClose=INTEGER|0RunOnStartup=INTEGER|0ToLog=INTEGER|3[Actions]Action1=FOLDERAction2=FOLDERAction3=FOLDERAction4=FOLDERAction5=FOLDERAction6=FOLDERAction7=FOLDER[Actions\Action1]ActionID=STRING|"A_GENERAL_RUN_PROG"Enabled=INTEGER|-1Name=STRING|"Run ""iexplore.exe"""Params=FOLDER[Actions\Action1\Params]params=STRING|"http://www.google.com"program=STRING|"C:\Program Files\Internet Explorer\iexplore.exe"runas=STRING|"0"wait=STRING|"0"[Actions\Action2]ActionID=STRING|"A_GENERAL_PAUSE"Enabled=INTEGER|-1Name=STRING|"Delay 2000 ms"Params=FOLDER[Actions\Action2\Params]delay=STRING|"20"[Actions\Action3]ActionID=STRING|"A_WINDOW_CHECK"Enabled=INTEGER|-1Name=STRING|"Check for Window"Params=FOLDER[Actions\Action3\Params]abortif=STRING|"0"action=STRING|"1"checkfor=STRING|"0"exact=STRING|"0"variable=STRING|"window_avail"wincaption=STRING|"Google - Windows Internet Explorer"[Actions\Action4]ActionID=STRING|"A_FLOW_IF"Enabled=INTEGER|-1Name=STRING|"If Then"Params=FOLDER[Actions\Action4\Params]case=STRING|"0"operator=STRING|"0"type=STRING|"3"value1=STRING|"{window_avail}"[Actions\Action5]ActionID=STRING|"A_INET_SENDMAIL"Enabled=INTEGER|-1Name=STRING|"Send Email"Params=FOLDER[Actions\Action5\Params]attachcount=STRING|"0"auth=STRING|"0"from=STRING|"blank@blank.com"host=STRING|"192.168.1.1"html=STRING|"0"msg0=STRING|"test message for webpage call up"msgcount=STRING|"1"password=STRING|"2591326226249432493925196"port=STRING|"25"subject=STRING|"web page call up"to=STRING|"blank@blank.com"[Actions\Action6]ActionID=STRING|"A_FLOW_ENDIF"Enabled=INTEGER|-1Name=STRING|"End If"[Actions\Action7]ActionID=STRING|"A_MISC_KILLAPP"Enabled=INTEGER|-1Name=STRING|"Terminate process ""C:\Program Files\Internet Explorer\iexplore.exe"""Params=FOLDER[Actions\Action7\Params]more=STRING|"2"process=STRING|"C:\Program Files\Internet Explorer\iexplore.exe"
Last edited by itrider on Tue Sep 18, 2007 12:13 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Terminate service error

Post by Oleg »

It's very interesting.

We have investigated this problem. If you use RoboTask as service and you use authentication of user ( Options | Settings | NT Service) then you get this:
If you start any program, then the program has been started under SYSTEM account and ToboTask can't terminate it, because it have no enough rights.
If you start RoboTask Service without authentication, then no problem.

Now RoboTask logs on each task before starting, if you use authentication. Probably we need to add additional setting of the task.
Last edited by Oleg on Mon Sep 24, 2007 5:26 am, edited 1 time in total.
itrider
Posts: 3
Joined: Thu Jul 12, 2007 8:29 am

Terminate service error

Post by itrider »

Makes sense.  If this gets resolved in the next release version, that would be great!
Post Reply