How to connect to Unix using VB 
Author Message
 How to connect to Unix using VB

  Can anyone tell me how to connect to Unix machine and execute Unix
commands using Visual Basic (is that possible after all? if not why?).
  Thanks in advance

-Ven

Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.



Sat, 12 Jan 2002 03:00:00 GMT  
 How to connect to Unix using VB
Hi,

Yes, why not?

You'll have to work like telnet.exe prg.
login, passwd and then the commands with full unix path.

    Hope this helps,

        rkr

Quote:

>   Can anyone tell me how to connect to Unix machine and execute Unix
> commands using Visual Basic (is that possible after all? if not why?).
>   Thanks in advance

> -Ven

> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.



Sat, 12 Jan 2002 03:00:00 GMT  
 How to connect to Unix using VB
:   Can anyone tell me how to connect to Unix machine and execute Unix
: commands using Visual Basic (is that possible after all? if not why?).
:   Thanks in advance

It is possible, by using the Winsock control, connecting to the telnet
port (23), logging in, etc.

However, this setup would not be terribly secure for the same reason
that telnet itself isn't: anyone on the network can determine the
password as it travels over the wire as plain text.  This may not be a
problem if you have only a few people on your network, trust them all,
and aren't connnected to the Net.  If any of those things is not the
case, though, then I couldn't in good conscience recommend it.

A more secure approach would be to write a server process on the Unix side
and send commands to that process via a socket.  The server process
would authenticate the request (ideally through some type of encrypted
challenge-response protocol) and, after verifying that it was from an
authorized address and user, carry out the command on your behalf.
This could be as simple as a few lines of perl, or as complex as a
CORBA ORB, depending on your application's needs.

Joe



Sun, 13 Jan 2002 03:00:00 GMT  
 How to connect to Unix using VB

When I do this, I get some funny characters back. Not a proper Login prompt,
can someone tell me what is going on ?
-John


Quote:

>:   Can anyone tell me how to connect to Unix machine and execute Unix
>: commands using Visual Basic (is that possible after all? if not why?).
>:   Thanks in advance

>It is possible, by using the Winsock control, connecting to the telnet
>port (23), logging in, etc.

>However, this setup would not be terribly secure for the same reason
>that telnet itself isn't: anyone on the network can determine the
>password as it travels over the wire as plain text.  This may not be a
>problem if you have only a few people on your network, trust them all,
>and aren't connnected to the Net.  If any of those things is not the
>case, though, then I couldn't in good conscience recommend it.

>A more secure approach would be to write a server process on the Unix side
>and send commands to that process via a socket.  The server process
>would authenticate the request (ideally through some type of encrypted
>challenge-response protocol) and, after verifying that it was from an
>authorized address and user, carry out the command on your behalf.
>This could be as simple as a few lines of perl, or as complex as a
>CORBA ORB, depending on your application's needs.

>Joe



Sun, 13 Jan 2002 03:00:00 GMT  
 How to connect to Unix using VB

Quote:

> When I do this, I get some funny characters back. Not a proper Login
prompt,
> can someone tell me what is going on ?
> -John

<cut>

most prompts from the system are going to include screen positioning or
other character formatting codes embedded in the stream.  You'll need to
check on the emulation in use (probably VT100 or compatible) to either
process those codes or ignore them.



Sun, 13 Jan 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How to connect UNIX using VB

2. Connecting oracle ( Unix server ) from windows mc using vb

3. How to connect VB to Oracle7 Unix

4. Connecting to Unix machine thru VB ?

5. Need some advice about connecting to UNIX from VB

6. Need help with connecting UNIX and VB?

7. Using VB to connect to DB without using ODBC

8. Using VB to connect to DB without using ODBC

9. Using VB to connect to DB without using ODBC

10. WINDOWS to UNIX file creation with VB 5 CRLF to LF using PRINT #

11. WINDOWS to UNIX file creation with VB 5 CRLF to LF using PRINT #

12. WINDOWS to UNIX file creation with VB 5 CRLF to LF using PRINT #

 

 
Powered by phpBB® Forum Software