http://imagej.273.s1.nabble.com/xvfb-and-the-parameter-notation-tp5017996p5018003.html
complicated. I need an answer to any one of the following questions:
1. Is it possible to pass a command line argument to a script using
2. Is it possible to use xvfb with Java 6 ImageJ and send and accept
> Hi Avital,
>
> Let's continue discussing on the ImageJ Forum where you posted this same
> question:
>
>
http://forum.imagej.net/t/a-problem-running-imagej-in-> headless-mode/3909/22
>
> Regards,
> Curtis
>
> --
> Curtis Rueden
> LOCI software architect -
https://loci.wisc.edu/software> ImageJ2 lead, Fiji maintainer -
https://imagej.net/User:Rueden> Did you know ImageJ has a forum?
http://forum.imagej.net/>
>
> On Thu, Feb 2, 2017 at 9:36 AM, Avital Steinberg <
>
[hidden email]>
> wrote:
>
> > Hi,
> > In Java 6, the getArgument() command can accept arguments from the
> command
> > line. It works both in Javascript and also in .ijm macros. However, in
> Java
> > 8, getArgument() doesn't work in both .ijm macros and Javascript scripts.
> >
> > My Javascript script that used to work well with xvfb in Java 6 was:
> >
> > importClass(Packages.ij.IJ);
> >
> > var NAME = getArgument();
> > IJ.log("The argument you sent was:" + NAME);
> >
> > I used to send an argument from the command line using xvfb like this:
> >
> > xvfb-run -a [Path_to_ImageJ]/ImageJ -b '[Path_to_script]/getArg.js
> Lisbon'
> > > {path_to_log]/getParamArgJ6
> >
> > However, the getArgument() command doesn't work in ImageJ Java 8 macros
> and
> > Javascript scripts. (as opposed to Java6 macros and Javascript scripts in
> > which it works)
> >
> > So I want to use the @parameter notation to get a string argument from
> the
> > command line using xvfb.
> >
> > If my script is:
> >
> > // @String NAME
> > importClass(Packages.ij.IJ);
> >
> > IJ.log("The argument you sent was:" + NAME);
> >
> > How would I write an xvfb command that would get the String argument?
> >
> > Thanks,
> > Avital
> >
> > --
> > ImageJ mailing list:
http://imagej.nih.gov/ij/list.html> >
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>