Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing a Unix command from VB

Status
Not open for further replies.

mjs84

Aerospace
Aug 20, 2003
27
0
0
US
Hello all,

I need to execute a Unix script from VB. Manually, I would open a shell using the dos 'cmd' command, and telnet to my unix site, then run the unix command. The problem with doing this programmatically is unlike it's ftp cousin, which has a -s parameter that allows you to use a text file containing all ftp commands, telnet does not offer this parameter.

Question 1. Can I use Telnet to do this, if so, how?
Question 2. Is there a better way to do this from a Win2000 machine?

Thanks in advance,

mjs84

 
Replies continue below

Recommended for you

I'd just use winsock to connect to the port. send text and capture results. Telnet is not a particularly difficult thing it's really just a dumb terminal.
 
Status
Not open for further replies.
Back
Top