QUOTE:
Is it possible to pass random parameters to published applications via command line options to goglobal_ux.exe?
For example: if I have a published application that starts emacs on my unix server, how can I pass the name of the file I want to edit from the windows client? Do I have to create a separate published application for each file I want to edit?
Thanks,
John.
John,
The closest machanism we have for what you describe is an undocumented feature that allows an environment variable to be included as a part of the launch parameter.
The specification in the clients command line is of the form
| Code: |
goglobal_ux.exe launch="2;FOO=BAR"
goglobal_ux.exe launch="2;FILE1=xyz.txt;FILE2-abc.txt"
|
The first example launches item #2 (my xterm), and sets the env-var FOO to be BAR. The second example sets two env-vars (FILE1, and FILE2).
Note that the quotes in this specification are required. Also, the semicolon is used as a delimeter, so the env-var can't have semicolons.
To meet your need, you could publish a shell script (call it launch-emacs) that when run looks for an env-var of your choosing (say FILE1), and then launches emacs with that file parameter.
Hope this helps.
Rob