subbu_valliappa
11 years agoContributor
"Access is denied" issue in scripting
We have this script to terminate a process if it still exists:
//terminate process if it still exists
p := Sys.WaitProcess('propx32');
if p.Exists then
begin
p.Terminate();
Log.Warning('A running process has been terminated');
end;
It occasionally fails on the test machine when our scripts run overnight with "Access is denied" issue logged in the test logs. The user account that is used for this script run has admin access on the test machine so I'm not sure what is going on here.
Any help or suggestions would be greatly appreciated.
//terminate process if it still exists
p := Sys.WaitProcess('propx32');
if p.Exists then
begin
p.Terminate();
Log.Warning('A running process has been terminated');
end;
It occasionally fails on the test machine when our scripts run overnight with "Access is denied" issue logged in the test logs. The user account that is used for this script run has admin access on the test machine so I'm not sure what is going on here.
Any help or suggestions would be greatly appreciated.