Command line syntax guidelines
BMC recommends the following guidelines for command line syntax:
- For external processes, adjust the command syntax appropriately for the platform on which the server is running, and include the explicit path to the command; for example, /home/jim/bin/ command.
In the Windows environment, specify the drive; for example, d:\home\jim\bincommand.bat.
- In the UNIX environment, the process runs under a Bourne shell.
- On a Windows server, you can only run a process that runs in a console (such as a .bat script or an executable like runmacro.exe ).
- Use double quotation marks around substituted fields when the values might contain spaces or other special characters; for example, /bin/cmd"$ field$".
- Substituted field values that contain hard returns or other special characters can have unexpected results.
- The BMC Remedy AR System server does not interpret environment variables for the Run Process action. To use environment variables, the action must run in the context of a command window or shell on the client or server computer. Therefore, include the path to the command-line executable in the command-line statement, as in the following Windows example (cmd.exe ):
For UNIX, you must include a reference to /bin/sh in the path. For examples using the Run Process action to integrate BMC Remedy AR System server with other applications, see Using buttons and menu bar items to execute active links.
"C:\Program Files\I386\cmd.exe %windir%\system32\mplay32.exe %windir%\Media\chimes.wav".
Was this page helpful? Yes No Submitting... Thank you