From: Jim K. <ji...@ji...> - 2004-02-28 18:45:24
|
Hello all, I was wondering if anyone has done any work with LabVIEW and SSH. I was looking at the PuTTY FAQ to see if there was a programmatic interface = and saw the following: <http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html#A.4.3> ##############=20 Probably your best bet is to use Plink, the command-line connection = tool. If you can start Plink as a second Windows process, and arrange for your primary process to be able to send data to the Plink process, and = receive data from it, through pipes, then you should be able to make SSH = connections from your program. This is what CVS for Windows does, for example. ############## I haven't done any works with pipes in Windows and did a little bit of research. I found the following on MSDN: <http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/dllpr= oc/ba se/creating_a_child_process_with_redirected_input_and_output.asp> Has anyone gotten pipes working in LabVIEW? Would anyone more C++ savvy than myself be interested in working with me to get a generic "System = Exec w/ Pipes" working? I envision a DLL that could be called from LabVIEW = (or maybe LabVIEW could call WinAPI DLLs directly) with functions for = Spawning the Process (the command-line executable), Reading from, and Writing to = a Pipe for communication with the running executable. Regards, -Jim |