11-07-2005 10:18 AM
11-08-2005 09:53 AM
Hello James,
Forgive this question if I’m missing something obvious here, but I am a little unclear on exactly what you are trying to do. It sounds like you are using the system exec VI in conjunction with an SSH session and a log file. I am a little unclear on the relationship between the three. First, how are you using the System Exec VI with SSH? Are you using SSH commands in the command prompt, or using the command prompt to open something like Putty? Second, what are you trying to do with the log file? Third, when you say that you don’t “see the results in the standard output” are you looking for the results in LabVIEW or in the command prompt window? Perhaps a screen-shot of your program might be a good idea for troubleshooting as well.
I look forward to hearing back from you -
11-08-2005 11:05 AM
11-09-2005 05:47 PM
Good evening James,
I am still a little unclear on what you wish to accomplish here (I don’t know exactly what you mean by “tail a log file with this command”), but I believe I can explain the behavior of the System Exec VI.
If you choose not to wait until complete, the VI will dispatch the command and continue execution without waiting, and therefore will not return anything from stdout. If you choose to wait, the VI will not return anything until either the task is complete or the window is closed (i.e. the close ends the task).
It may be the case that this VI is not one you will be able to use as desired. I do not believe there is any way to constantly monitor and process the data in stdout with this VI. You may need to switch to a solution which uses either the raw TCP commands or maybe ActiveX.
Hopefully this helps to explain the System Exec VI. Please don’t hesitate to let us know if you have any additional questions.