Software Archive
Read-only legacy content
17061 Discussions

intel edison retaining code on eclipse

RAJEEV_KUMAR_B_
Beginner
1,428 Views

Hey people, I ran a code on eclipse and transmitted it to my edison via wifi. Now the problem in facing is that when i close the eclipse window the code on the edison which was transmitted via wifi also stops working. So could anyone here help me out on how to retain the code on the edison even if the eclipse window is closed.

 

0 Kudos
7 Replies
NagaVenkat_K_Intel
1,428 Views

Normally if you close the development environment the GDB stops and so is the process. If you want to run the application without using the IDE you can just go to the path using a terminal connection on the Edison board. (SSH or Serial). The default path using the IDE is /tmp/<file name>

0 Kudos
RAJEEV_KUMAR_B_
Beginner
1,428 Views
I have made a ssh connection using putty..and then found my file name in tmp.. Now how do I go about running and executing my code
0 Kudos
NagaVenkat_K_Intel
1,428 Views
It is just the way you do in linux ./ (dot slash appname)
0 Kudos
RAJEEV_KUMAR_B_
Beginner
1,428 Views
Hey, the code ran but again when I close putty the code stops working. Like in ardunio ide when we write the code into the Edison the code stays even after we close the ide.. Can the same be done with eclipse through ssh?
0 Kudos
PeterKerney
Employee
1,428 Views

You might be seeing the nohup thing. Check page 2 of the link below for the "Correct Answer". 

https://communities.intel.com/thread/57402?start=15&tstart=0

 

0 Kudos
NagaVenkat_K_Intel
1,428 Views

Thanks Peter. 

Rajeev: If you plan to run the application as service which runs on startup, please refer this page

https://communities.intel.com/thread/60537

 

0 Kudos
Matthias_H_Intel
Employee
1,428 Views

Raghu Kona (Intel) wrote:

Normally if you close the development environment the GDB stops and so is the process. If you want to run the application without using the IDE you can just go to the path using a terminal connection on the Edison board. (SSH or Serial). The default path using the IDE is /tmp/<file name>

the directory where the SW is stored is defined in Eclipse at your "Run As ..." configuration. 

some additional notes to this thread:

  • I'd recommend to use "nohup", "screen" ... for "one-time" tests / runs
  • as Peter pointed out: for a startup process you want to run every time the system boots you should rather use a systemd service 

BTW: you can also have a shell directly via Eclipse - you wouldn't even need PuTTy: see https://software.intel.com/en-us/blogs/2014/09/23/intel-iot-devkit-remote-access-through-ide 

0 Kudos
Reply