Using AMC in command line only

Version 1 (Alex Alex, 03/07/2021 12:05 am)

1 1
h1. Using AMC in command line only
2 1
3 1
(under construction)
4 1
5 1
These instructions should help you use AMC in command line only without having to open the graphical user interface.
6 1
These instructions work with version 1.1.0 of AMC.
7 1
8 1
h2. Creating a new project
9 1
10 1
There is no AMC command to create a new project, so you will need to create directories "manually". I use the following bash script to create the needed directories:
11 1
12 1
<pre>
13 1
#!/bin/bash
14 1
# file name: new_project.sh
15 1
PROJECT_DIR=/home/me/MC-Projects
16 1
17 1
mkdir $PROJECT_DIR/$1
18 1
mkdir $PROJECT_DIR/$1/cr
19 1
mkdir $PROJECT_DIR/$1/cr/corrections
20 1
mkdir $PROJECT_DIR/$1/cr/corrections/jpg
21 1
mkdir $PROJECT_DIR/$1/cr/corrections/pdf
22 1
mkdir $PROJECT_DIR/$1/cr/diagnostic
23 1
mkdir $PROJECT_DIR/$1/cr/zooms
24 1
mkdir $PROJECT_DIR/$1/data
25 1
mkdir $PROJECT_DIR/$1/exports
26 1
mkdir $PROJECT_DIR/$1/scans
27 1
</pre>
28 1
29 1
then you can create a new poject by typing:
30 1
<pre>
31 1
./new_project.sh my-new-project1
32 1
</pre>