Pages: [1]   Go Down
Author Topic: [solved] Open a .pde file from the command line (linux)  (Read 814 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
www.gunnewiek.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: May 30, 2011, 05:37:06 pm by dethredic » Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
www.gunnewiek.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

even if I do:
arduino /home/phil/programming/Arduino/test/test.pde

I still get a blank sketch

EDIT:

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:
/usr/share/arduino/arduino
{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
« Last Edit: May 29, 2011, 06:41:52 pm by dethredic » Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 11
www.gunnewiek.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Pages: [1]   Go Up
Jump to: