Getting the text of a program off the LINK?

3 replies [Last post]
dwculp
Title: NooBot
Joined: 03/06/2011
Posts:
BotPoints: 9
User offline. Last seen 9 years 31 weeks ago.

The old CBC stored the actual text of programs downloaded to it and you could easily get the text of the program back off if needed. I had a rogue student delete other students files from their flash drives. The programs still reside on the LINK. I can easily SSH into the LINK but cannot find the source files of the programs, only binaries. Is the text of the program clobbered when the LINK compiles the .c source as it appears the binaries are also named .c.

ruler501
ruler501's picture
Title: NooBot
Joined: 01/29/2012
Posts:
BotPoints: 367
User offline. Last seen 7 years 20 weeks ago.

I can't help with that, but I was wondering how you ssh into the link? What is the login and password?

EDIT: nvm I was playing around and found it. I'll see if I can find where it stores files

Beta
Beta's picture
Title: The Magnificent
Joined: 02/24/2012
Posts:
BotPoints: 266
User offline. Last seen 8 years 32 weeks ago.

Hi David,

Apologies for this. We will have a utility built into KISS IDE soon for getting files off of the KIPR Link. In the mean time, run this program with a flash drive plugged in:

  1. int main()
  2. {
  3. system("cp -R /kovan/archives/* /kovan/media/sda1/");
  4. system("sync");
  5. return 0;
  6. }

That should put all of the clobbered archives on your flash drive. If you email me a clobbered C archive, I will extract it and give you back the C file. You can find my email in my signature. Alternatively, email support@kipr.org.

Thanks.

Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 7 years 18 weeks ago.

@Mr. Culp, I realize this is slightly off-topic, but have you considered having your students use version control? It would be a lot harder for a malicious student to wipe a Git repo than to wipe a flash drive. Flash drives are disasters waiting to happen.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS