Run plugin from windows cmd

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Run plugin from windows cmd

JaapK
Is it possible to launch a plugin with an argumentstring from the windows command line in headless mode?

I've tried something like:
ImageJ -batch "plugin name" "argumentstring"
But that doesn't seem to work.

Can anyone help?
Reply | Threaded
Open this post in threaded view
|

Re: Run plugin from windows cmd

dscho
Hi,

On Thu, 2 Dec 2010, JaapK wrote:

> Is it possible to launch a plugin with an argumentstring from the
> windows command line in headless mode?
>
> I've tried something like:
> ImageJ -batch "plugin name" "argumentstring"
> But that doesn't seem to work.
>
> Can anyone help?

You need to use something like

        ImageJ -eval "run('Plug In', 'arguments');" -batch

but I am not quite sure about quoting in Windows cmd (I find the quoting
rules in Windows cmd pretty confusing).

Hth,
Johannes
Reply | Threaded
Open this post in threaded view
|

Re: Run plugin from windows cmd

JaapK
Hi Johannes,

Thanks a lot, that works perfectly!
You're right, windows quote rules are confusing, though in this case
it seems to work as intended.

Regards,
Jaap


2010/12/2 Johannes Schindelin <[hidden email]>:

> Hi,
>
> On Thu, 2 Dec 2010, JaapK wrote:
>
>> Is it possible to launch a plugin with an argumentstring from the
>> windows command line in headless mode?
>>
>> I've tried something like:
>> ImageJ -batch "plugin name" "argumentstring"
>> But that doesn't seem to work.
>>
>> Can anyone help?
>
> You need to use something like
>
>        ImageJ -eval "run('Plug In', 'arguments');" -batch
>
> but I am not quite sure about quoting in Windows cmd (I find the quoting
> rules in Windows cmd pretty confusing).
>
> Hth,
> Johannes
>