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.nl&webapp=galaxy&password=geheim&login_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=sffinfo&reload_tool_button=Reload" http://dev1.ab.wurnet.nl:8086/admin/reload_tool | grep "donemessage" If all went well, you get this back : <div class="donemessage">Reloaded the tool:<br/><b>name:</b> sffinfo<br/><b>id:</b> sffinfo<br/><b>version:</b> 1</div> HTH, Jan
-----Original Message----- From: galaxy-dev-bounces@lists.bx.psu.edu [mailto:galaxy-dev- bounces@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