Question

I'm trying to access files from an iPad. It supposes to plot some live data. However the data (file) that is being generated by the java program doesn't let the SCP client to sync the file to the server. It can access only on stopping the java program so that it can let go off the file that it writes. Is there way out for this? Like real time update of the server when the file is generated by the program?

Was it helpful?

Solution

A possible solution would be to run a command line version of scp as a system command from your java program (Sample code: http://www.java-samples.com/showtutorial.php?tutorialid=8) each time you have closed the filehandle.

commandline scp: http://www.jfitz.com/tips/ssh_for_windows_doc_version2.html#CommandLineSSHSCP

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top