LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Telnet into remote UNIX machine using any method that works

Okay, so I have been struggling with this problem for a good few days now. I have tried everything that I thought could possibly work, but to no avail there is no success. I have scoured this message board using the various techniques others have used and I have not had any success, I am hoping someone out there may be able to help with the problem. 

 

What I am trying to do:

 

I want to be able to telnet into a UNIX machine and communicate with the machine by sending commands and reading responses. I have no problems at all doing this through the command prompt in Windows, so it is not a security issue or a bad connection issue. 

 

Some things I have tried: 

 

I have tried the TCP  VIs and it seems there is no problem making the connection, but I can't successfully sign into the machine using the TCP Write.vi and my user name and password. I guess I am not sure if I have the right syntax to sign in, I have been using "user <username> <password>\n"

 

 

 

I don't have to use the TCP VIs, I could use the System Exec.vi if it is possible, but I have relentlessly tried all sorts of things with this VI also but nothing seems to work.

 

Any help would be greatly appreciated, I didn't supply any VIs or pics because I have tried so many different things.... I can supply any additional details that would be helpful in trying to figure out where I am going wrong. Thanks for your help 

 

 

 

 

 

0 Kudos
Message 1 of 4
(2,707 Views)
The Internet toolkit contains Telnet functions. You could create your own from the low level TCP/IP but it's a lot easier to use the toolkit. What version of LabVIEW are you using?
0 Kudos
Message 2 of 4
(2,700 Views)
I saw a lot of information regarding the Internet toolkit functions, but I don't have that package. I am running LabVIEW 8.5.
0 Kudos
Message 3 of 4
(2,695 Views)
Details of the Telnet protocol are easily available on the web; it is not as simple as a raw TCP connection but does not appear to be too much more complicated.  The syntax for username and password depends on your telnet server, and should be in the same format you use with Windows telnet.
0 Kudos
Message 4 of 4
(2,676 Views)