Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
documentation:install:mac [2016/10/10 09:40] – external edit 127.0.0.1 | documentation:install:mac [2017/03/27 12:03] – Maurits W. Haverkort | ||
---|---|---|---|
Line 2: | Line 2: | ||
### | ### | ||
- | alligned paragraph | + | Quanty is a text based program. In order to run it you need to make a text file that contains the commands you want to execute, then you run the program with as an input the name of the text file. Running such a program goes via the " |
+ | * ls - list the files in the folder you are in at the moment | ||
+ | * cd - changes you to a new folder | ||
+ | * pwd - shows you the folder you are in | ||
+ | * open -t filename - opens the file with the name filename in a text editor | ||
+ | In order to find a full tutorial on linux you can google "linux bash shell commands" | ||
### | ### | ||
- | ===== Example ===== | + | ### |
+ | We now need to place the program Quanty into a folder where you can run it easily from within the terminal. To do so we will create the folder " | ||
+ | ### | ||
### | ### | ||
- | description text | + | The last thing to do is to copy the program into your bin. For this you can use finder. From the terminal you can type (open bin -a Finder) and then drag and drop the program you downloaded into the folder bin. |
### | ### | ||
- | ==== Input ==== | + | ### |
- | < | + | You now can run the program from the terminal by typing (Quanty |
- | -- some example code | + | ### |
- | </ | + | |
- | ==== Result | + | ===== Run Quanty from the terminal ===== |
- | <file Quanty_Output> | + | |
- | text produced | + | ### |
- | </file> | + | In order to run Quanty from the terminal you type Quanty followed by an enter. If you do so the program will place a small amount of text on your screen and then complain that it has nothing to do. If you want a real calculation you have to give Quanty a set of instructions |
+ | ### | ||
+ | |||
+ | ### | ||
+ | echo ' | ||
+ | ### | ||
+ | |||
+ | ### | ||
+ | and then: | ||
+ | ### | ||
+ | ### | ||
+ | Quanty MyFirstQuantyProgram.Quanty | ||
+ | ### | ||
+ | |||
+ | ### | ||
+ | In order to do more elaborated calculations modify the input file. (open -t MyFirstQuantyProgram.Quanty [enter]) | ||
+ | ### | ||
+ | |||
+ | {{ : | ||
===== Table of contents ===== | ===== Table of contents ===== | ||
{{indexmenu> | {{indexmenu> | ||
- |