You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "rajiv devaraj (Jira)" <ji...@apache.org> on 2020/03/06 18:22:00 UTC

[jira] [Created] (DAEMON-416) prunsrv.exe adding special character while executing in windows 2019

rajiv devaraj created DAEMON-416:
------------------------------------

             Summary: prunsrv.exe adding special character while executing in windows 2019
                 Key: DAEMON-416
                 URL: https://issues.apache.org/jira/browse/DAEMON-416
             Project: Commons Daemon
          Issue Type: Bug
         Environment: Windows 2019
            Reporter: rajiv devaraj


While executing {{prunsrv.exe}} from an earlier version of Windows, (like 2016), the below command was working. But upon introducing the same statement for Windows 2019, it's not starting the service.

I inspected the registry to check the path in which the process was created. It seems to add a random special character before the path, which is why it's not able to start.

Observed Path:

 

{{C:\<SOME_PATH>/prunsrv.exe ^E//RS//<SOME_PROCESS>}}

Here near {{//RS}}, {{^E}} is prepended and it's random special character is generated for every execution.

Expected Path:

 

{{C:\<SOME_PATH>/prunsrv.exe //RS//<SOME_PROCESS>}}

This is the line which is responsible to initiate the process which is triggered from {{.bat}} file:

 

{{"%SOMEPATH%/bin/prunsrv.exe" //IS//%SERVICE_NAME%}}

I need some help on how to remove this special character before the process is started.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)