I am a embedded developer new to web development. This is my first post here !
I designed a simple website with html and php. Now I will configure it to send some data to client as a file.
There will be an application at client which will transfer this file to other board via UART interface. Now at this point, user has to download the file and use it with the application to get job done.
My question is, Can we invoke client side application (command line executable) to automate it somehow ??
taking permission from user at first time is fine.
I came across 'ActiveX' but can't use it since both server and client are on Linux platform. Any easy way out?
Maybe I don't understand your precise problem, but you can download files from a server by indirection, they just need to be in a safe javascript format such as a JSON structure or a quoted escaped string that can be parsed.
As I understand it, most, if not all browsers run javascript in a secure sandbox which can only access the DOM of the current web page, or files on the *server* within the web root directory of the website via AJAX calls. There's no way for the javascript engine to interact with files on the client, or run shell commands on the client.
Assuming what you want to do is:
1) download a file to a *client* machine
2) run a shell command on the *client* machine using the copied file
I'd say the best solution is to write a java app which the user downloads to their machine which when run performs the above steps.
Bookmarks