Accessing remote device via ethernet.

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Accessing remote device via ethernet.

Post by tasdvl9 » Thu May 29, 2014 3:38 pm

Hello,

I'm in the beginning stages of trying to communicate with an external device using wired ethernet.
Basically my goal is to access this machine and get a directory listing. There are files on the
machine which I eventually will upload to a database.

The Livecode app I have written is able to do all of this on my local machine but now I need to expand the app
to do this remotely as well.

Any pointers?

Thanks!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10058
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Accessing remote device via ethernet.

Post by FourthWorld » Thu May 29, 2014 5:06 pm

You can do this via SSH with LiveCode's shell command, but since SSH requires a password you'd first need to bypass that with a shared SSH key (generally a good idea for security reasons anyway).

Alternatively, you can use other daemons besides sshd, such as a Web server, or even a custom server made with LiveCode.

Another possibility is that if the host machine has a compatible file system and sharing protocol you can mount it and address it with simple file I/O functions.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Re: Accessing remote device via ethernet.

Post by tasdvl9 » Thu May 29, 2014 7:14 pm

Thanks for the quick response.

Basically I am going to be running an axis2 server on the remote machine and sending
jar commands through my app which is on another machine. Is this doable from within a LiveCode stack?

Post Reply