Re: [galaxy-dev] reload a tool's configuration from command line

2012-03-28 Thread Hans-Rudolf Hotz

Hi Jan

This is brilliant - it is always the simple solutions you overlook - 
thank you very much!


May I just add a modified version, in case you use external 
authentication. There is no point to create a cookie, since you need to 
provide userid (not the e-mail) and password each time. So a simple line 
using the '-u' option will do:


curl --silent --data-ascii tool_id=my_toolreload_tool_button=Reload 
-u userid: http://mygalaxy.ch/admin/reload_tool



Thanks again, Hans



On 03/27/2012 11:27 AM, Haarst, Jan van wrote:

I just did a test, and this works :

First login, so you get your login cookie :

curl --cookie-jar galaxy_cookie.txt --data-ascii 
'email=jan.vanhaarst%40wur.nlwebapp=galaxypassword=geheimlogin_button=Login' 
http://dev1.ab.wurnet.nl:8086/user/login

Then use that cookie to login, and reload your tool:

curl --silent --cookie galaxy_cookie.txt --data-ascii 
tool_id=sffinforeload_tool_button=Reload 
http://dev1.ab.wurnet.nl:8086/admin/reload_tool | grep donemessage

If all went well, you get this back :

 div class=donemessageReloaded the tool:br/bname:/b  sffinfobr/bid:/b  
sffinfobr/bversion:/b  1/div

HTH,

Jan


-Original Message-
From: galaxy-dev-boun...@lists.bx.psu.edu [mailto:galaxy-dev-
boun...@lists.bx.psu.edu] On Behalf Of Nate Coraor
Sent: maandag 26 maart 2012 17:22
To: Tim-Christoph Roloff
Cc: galaxy-dev@lists.bx.psu.edu
Subject: Re: [galaxy-dev] reload a tool's configuration from command line

On Mar 22, 2012, at 11:28 AM, Tim-Christoph Roloff wrote:


Hello,

I was wondering if there is a way to trigger the reload of a tool's 
configuration from

command line.

We are using a tool that loads .xml files from tool-data. The .xml files get 
modified

by a script ran by cron frequently. Right now we reload the tool config via the 
admin
interface but ideally we could integrate the reload in the cron job.


Best regards

Tim


Hi Tim,

A few people have done it by creating a script that acts as a web client and 
performs
the function via the web interface.  There's no direct way to do it from the 
command
line without restarting the server, unfortunately.

--nate






___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

   http://lists.bx.psu.edu/

___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

 http://lists.bx.psu.edu/


[galaxy-dev] reload a tool's configuration from command line

2012-03-22 Thread Tim-Christoph Roloff

Hello,

I was wondering if there is a way to trigger the reload of a tool's 
configuration from command line.
We are using a tool that loads .xml files from tool-data. The .xml files 
get modified by a script ran by cron frequently. Right now we reload the 
tool config via the admin interface but ideally we could integrate the 
reload in the cron job.


Best regards

Tim

___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

 http://lists.bx.psu.edu/