GraphOn Support Forums
Welcome, Guest
Please Login or Register.    Lost Password?
How to pass random parameters to published applications? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: How to pass random parameters to published applications?
#43
yelram (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
How to pass random parameters to published applications? 5 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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#48
CurreyRob (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re: How to pass random parameters to published applications? 5 Years, 1 Month ago Karma: 0  
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#50
CurreyRob (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re: How to pass random parameters to published applications? 5 Years, 1 Month ago Karma: 0  
I should also add that this feature is only present in the 2.1 version ...

Rob
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop