Page 1 of 1

Accessing remote device via ethernet.

Posted: Thu May 29, 2014 3:38 pm
by tasdvl9
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!

Re: Accessing remote device via ethernet.

Posted: Thu May 29, 2014 5:06 pm
by FourthWorld
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.

Re: Accessing remote device via ethernet.

Posted: Thu May 29, 2014 7:14 pm
by tasdvl9
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?