How to start processing applications from the terminal
I am currently using Processing for a small project, but I don't like the text editor that comes with it. I am using vim to write all of my code. I found where the .pde file is and I edited them from vim and then reopen them and run them (it takes a lot to reload the script and run it). This is why I want a solution where I can compile everything from the terminal.
On a closed check, I found a java processing file that supposedly compiles and runs the sketch. However, whatever arguments I suggest, it keeps spilling the help page. This is an example of how I run them.
(PS: I created a script that starts processing-java and adds it to / usr / bin)
processing-java --sketch=/home/george/sketchbook/testproject --output=/tmp/processing/test --force --run
Can someone help me please run my sketches from terminal?
source to share
I managed to do this by creating a bash script called pjava and the code will follow in case anyone has this question:
#!/bin/bash
rm -rf /tmp/processing
mkdir /tmp/processing
/home/euler/Desktop/processing-2.0b8/processing-java --output=/tmp/processing/ --force --sketch=$1 --run
And how I run it I follow:
If I hit a folder named project
I run pjava ../project
and project.pde gets compiled and run.
source to share