Using EMML command line programs to test and publish mashups

john.crupi
john.crupi's picture
User offline. Last seen 3 weeks 5 days ago. Offline
Joined: 09/19/2008
Points: 140

Mashups can be created in Wires, Presto Studio and manually in say Emacs.

If you want to use a command line tool to test and publish, you can do the following:

Go to the /mashupclient/bin directory

To run/test a mashup, run (for Windows you can just use emml.bat) :

sh emml.sh -u admin -p adminadmin -f my.emml

To publish a mashup, run (for Windows you can just use emmlpub.bat)

sh emmlpub.sh -u admin -p adminadmin -f my.emml -A

The -A activates the mashup.

Of course, make sure your (u)ser name and (p)assword are correct.

0
Your rating: None
Americo Savinon
Americo Savinon's picture
User offline. Last seen 3 weeks 2 days ago. Offline
Joined: 09/19/2008
Points: 187

Another important command for updating mashups that have been already registered on Presto is:

sh emmlupd.sh -u admin -p adminadmin -f my.emml

NOTE: The mashup itself must be deactivated before using this update command. After that... remember remember the fifth of November and to re activate your mashup.

Karthic Thope
Karthic Thope's picture
User offline. Last seen 22 weeks 5 days ago. Offline
Joined: 09/22/2008
Points: 61

When using the command-line tool to test mashups, you can use the java command-line -D option to pass one or more parameters.

sh emml.sh -u admin -p adminadmin -f test.emml -Dparam1=value1 

andrest
User offline. Last seen 1 year 28 weeks ago. Offline
Joined: 01/17/2010
Points: 0

Is there a way to deactivate/activate a mashup with a swtich to one of the scripts e.g. emmlpub, emmlupd, or emml?  I finding that once I publish I can not update the mashup script via the CLI.   

Error updating service : Cannot update Service with ACTIVE status :

 

 

smitchell
smitchell's picture
User offline. Last seen 2 weeks 5 days ago. Offline
Joined: 08/29/2008
Points: 34

No, the command line basically lets you test, register and update. You would have to deactivate or delete a mashup from Presto Hub.

If you need more info, you can find links to docs on the full scope of the command line for mashups and for macros at http://www.jackbe.com/prestodocs/v3.0/emml/utilities-intro.html and http://www.jackbe.com/prestodocs/v3.0/emml/pubMacroCmd.html

Sara, technical writer/jackbe