-
Notifications
You must be signed in to change notification settings - Fork 17
Run On The Command Line
Brandon Gallas edited this page Jan 21, 2021
·
5 revisions
iMRMC can be launched and run on the command line (batch mode).
The software does the same processes as the Analysis All Modalities button.
Here are the instructions to run iMRMC from the command line with the following steps:
- Open up the Command Prompt App or other similar interface.
- Type the command
java -jar iMRMC-v4.0.3.jar full_path_input_file_name
. You may have to add the full path to iMRMC-v4.0.3.jar. You may have to contain the full-path file names in quotes. The output files will be saved in a new folder in the same directory as the input file. The name of this folder is built on the root of the input file name plus a time stamp. - The user can add a second argument after the input file to specify a different directory to save the output files. If the full path is not specified, it will be relative to where the java command is executed.
- This process can be prepared in a .bat file and executed with a double click.
The instructions for Linux are the same as for Windows. If you get an error such as No X11 DISPLAY variable was set
or Can't connect to X11 window server
, then install Xvfb and use
xvfb-run java -jar iMRMC-v4.0.3.jar input.imrmc
We have also had success with the following two step process:
- From the Linux command line, run
Xvfb :5 &
. This creates a fake X display in the background. - From the Linux command line, run
export DISPLAY=":5"; java -jar iMRMC-v4.0.3.jar input.imrmc