I have one requirement to execute simple OS command such as dir,move,date etc on a server through wM with the help of pub.utils.executeOSCommand service. So can anyone suggest me which Directory path and what are the command list should i set inside Wmpublic .cnf file for the following Parameter .
Where did you found these parameters documentation from to have it configured? Also from where did you find this Wmpublic .cnf file and does it exist on the IS folders? as I donβt think so they are:
I am referring to OSCommands.cnf file Present inside Integration Server\packages\WmPublic\config directory
i have set the parameter for the OSCommands.cnf file as given below for exceuting simple dir command:-
allowedOSCommands=dir; allowedWorkingDirectories=F:\IntegrationServer\packages\Test;
and in wm IS service (pub.utils:executeOSCommand) input Parameter i set the value as: command=dir workingDirectory=F:\IntegrationServer\packages\Test
While executing the service from webmethod IS i am getting below error :
An error occurred while tracing.
com.wm.app.b2b.server.ServiceException: [ISS.0086.9279] Specified working directory
[F:\WM9065\IntegrationServer\packages\Test] is not on the allowedWorkingDirectories list in the OSCommands.cnf file
and in wm IS service (pub.utils:executeOSCommand) input Parameter i set the value as: command=/home/webMethods/ls.sh workingDirectory=/home/webMethods/
While executing the service from webmethod IS i am getting below error :
An error occurred while tracing.
com.wm.app.b2b.server.ServiceException: [ISS.0086.9279] Specified working directory
[/home/webMethods/] is not on the allowedWorkingDirectories list in the OSCommands.cnf file
PI: the user can access the directory:/home/webMethods/
Thank you