Go Down

Topic: [solved] Open a .pde file from the command line (linux) (Read 2257 times) previous topic - next topic


May 29, 2011, 08:48 pm Last Edit: May 31, 2011, 12:37 am by dethredic Reason: 1
I want to be able to do 'arduino test.pde' have have arduino open the .pde file and not a blank file.

I found this: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1284958834
But when I added the $1 to the end it didn't change anything.


The arduino script changes the current working directory to /usr/share/arduino, did you specify the full path to your pde? if not you'll open a blank sketch


May 30, 2011, 01:14 am Last Edit: May 30, 2011, 01:41 am by dethredic Reason: 1
even if I do:
arduino /home/phil/programming/Arduino/test/test.pde

I still get a blank sketch


if I do:

echo $0
echo $1
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base /home/phil/programming/Arduino/test/test.pde

then run the command: "arduino lol" I get:
{blank line here where $1 should be aka lol}

then it opens the program with the proper sketch loaded, so the $1 parameter isn't getting passed properly


Figured it out: http://gunnewiek.com/2011/open-pde-files-with-arduino-ide-in-linux/

Go Up