Welcome, Guest
Please Login or Register.    Lost Password?

How to pass random parameters to published applications?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to pass random parameters to published applications?
#43
How to pass random parameters to published applications? 14 Years, 1 Month ago Karma: 0
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.
yelram
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#48
Re: How to pass random parameters to published applications? 14 Years, 1 Month ago Karma: 0
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
CurreyRob
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#50
Re: How to pass random parameters to published applications? 14 Years, 1 Month ago Karma: 0
I should also add that this feature is only present in the 2.1 version ...

Rob
CurreyRob
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: troy, Andyl