Yes it is possible to run non-Java code and scripts from a plug-in. Your code below is correctish ... are you sure you are running the script in the correct directory in the server? The Affymetrix plug-in at http://baseplugins.thep.lu.se/wiki/se.lu.thep.affymetrix uses external programs to perform the calculations and the code in that plug-in should be usable for you to copy. In function runBinary in http://baseplugins.thep.lu.se/browser/trunk/se/lu/thep/affymetrix/RMAExpress.java there is a call to Runtime.exec but with another list of arguments than your example code.
Cheers, Jari Peter Mertens wrote: > Dear list, > > is it possible to run a script from within the plugin? > > Then i have something like this in the "run" method: > > public void run(...) > { > ... > Runtime runtime = Runtime.getRuntime (); > Process process = runtime.exec("./scirpt PluginRunner arg1 arg2"); > int exitValue = process.waitFor(); > ... > } > > Is this possible because? > I keep getting errors and it's quite hard to get the exceptionmessages > from the Runtime-error to the stacktrace. > > gr. > > Peter ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ basedb-devel mailing list basedb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/basedb-devel