Connect to UNIX server with Visual Basic


 
Thread Tools Search this Thread
Top Forums Programming Connect to UNIX server with Visual Basic
# 8  
Old 10-27-2009
thanks a lot for your help!
Considering that my VB skills are somehow low, i think i will need much more help from you or everyone from this forum!
So I apologize if my further questions will be silly!

LE: I might be wrong but the example that you gived me is for a command promt application! I will attach a picture to show you want i need more exact!

Image

Thanks in advance, and sorry for my bad english

Last edited by SuperDuck; 10-27-2009 at 08:51 AM..
# 9  
Old 10-27-2009
Quote:
Originally Posted by SuperDuck
thanks a lot for your help!
Considering that my VB skills are somehow low, i think i will need much more help from you or everyone from this forum!
If you have any specific questions, make them. If you need us to walk you through every step of creating the GUI and attaching it to triggers, you need to learn VB, we're not going to write your application for you. Would you really run random code handed to you by strangers off the internet without understanding it?

I don't know why you're insisting on a hardcoded VB application instead of just connecting with PuTTY and making scripts on the UNIX server. You can customize that all you want without any special software on the PC side at all, and it would be a heck of a lot simpler than building an entire VB application and bodging SSH onto it with plink. To help you with that, we need to know your actual goal, not "I want to write a vb program for ssh" but what you intend to do with it.
Quote:
I might be wrong but the example that you gived me is for a command promt application!
So what? There's no magical difference between the two.
# 10  
Old 10-28-2009
It seems that my VB knowledge is much more poor than i thought!
I will try to understand how to use the code that you showed me into a GUI !

I insist in this type of application because, it's much more easier for the users to use an Win application who runs a specific command, they don't even have to know unix commands! (this application is for work)

My "goal" sounds like that: This application may run a command on user specified unix machine and take the output and store it into a .txt file!
They have to insert only the server,user, password and the file!
After that my application runs the command, creates an .txt file with the output on my local drive.

Do you know a good documentation for VB that might help me to better understand this programming language ( i know a lots of tutorials and documentations, but i think that you, as an expert know who is best of them)?

And YES i have searched on google for tutorials and others! Smilie

Thanks a lot for your patience, and sorry for my bad english!
# 11  
Old 10-28-2009
Quote:
Originally Posted by SuperDuck
I insist in this type of application because, it's much more easier for the users to use an Win application who runs a specific command, they don't even have to know unix commands! (this application is for work)
How can they type the right command into your GUI interface if they don't know it? And if they do, why can't they use ssh?
Quote:
My "goal" sounds like that: This application may run a command on user specified unix machine and take the output and store it into a .txt file!
plink sounds like it can do almost exactly as you describe, except it's not a GUI app. Or, rather, because it's not a GUI app. You can run it from VB to make it do all the real work of connecting with SSH for you. Can you figure out how to make a function get called when you click a button? Can you access the input boxes to get their text? If so there's nothing stopping you from putting together a string like
Code:
plink -batch -ssh -l user -pw "password" -m input-file.txt hostname > output-file.txt

...then feeding this string into ExecCmd.
Quote:
Do you know a good documentation for VB that might help me to better understand this programming language ( i know a lots of tutorials and documentations, but i think that you, as an expert know who is best of them)?
Sorry, no. I used to know a little VB version 6 but I haven't used it or thought about in nearly 10 years. I'm here since I'm somewhat familiar with UNIX, these being the UNIX forums, but your questions have nearly nothing to do with that at all.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Visual Basic converting a decimal data type to a label with currency format

Here is the code that I am working with. I have tried several other things. any suggestions? Lbl_Cost_Output.Text = (dDistance * dCostPerMile).ToString("C") The label is formatted correctly in terms of value 0.00 but no dollar sign appears. Please let me know if you have any questions. (1 Reply)
Discussion started by: briandanielz
1 Replies

2. Solaris

How to FTP (get multiple) unix files to windows using visual basic 6

How to FTP (get multiple) unix files to windows using visual basic 6. I am a list of files in my unix location, need to ftp those files to windows machine using Visual basic 6 or VBA macros. Thanks in Advance (3 Replies)
Discussion started by: sureshmani
3 Replies

3. Windows & DOS: Issues & Discussions

[Template] Send SMTP email with Visual Basic Script (vbs) from Command Prompt using CDO

This is a script in visual basic that basically sends an email from an existing account, in this case the example is provided for live.com. It uses CDO (Collaboration Data Objects). All you need to do is replace the fields with the proper information. The email is send from Command Prompt... (0 Replies)
Discussion started by: Tribe
0 Replies

4. Solaris

how to connect a PC terminal to UNIX server?

Hi everyone, I am new to Unix and looking for help here. we have four terminals connected to our solaris server (x86 based). the server got an interface card which provide serial port and video port for all chained terminals in a serial way. All these clients have no IP and they all display... (3 Replies)
Discussion started by: Cheong
3 Replies

5. Windows & DOS: Issues & Discussions

Start An Hummingbird Exceed Shell With Visual Basic

Hi all. I have a script that I've finished on Solaris 10 recently. Now they want me to build a GUI for it with VB. This is my first endeavour with VB. I am using Visual Studio 2008 to write the GUI. The GUI is all done and has the string var 'Command' that I want to execute in the shell. ... (0 Replies)
Discussion started by: Grizzly
0 Replies

6. UNIX for Dummies Questions & Answers

Using FTP mget from Visual Basic Shell

Hi calling a batch file with FTP commands from Visual basing with Shell, it basically to copy files then delete them. The delete seems to work but the copy, it looks like the mget command doesn't have the complete information on where to copy the files. Here is the batch file content. Open... (2 Replies)
Discussion started by: Mario120560
2 Replies

7. Windows & DOS: Issues & Discussions

To Connect to Windows server from Unix server

Hi i am writing a script in unix where after some validations, i require the script to connect to a windows server and then kich off a batch file there. i tried ftp and got the error message that "the remote host refused an attempted connect operation". I am able to connect to this unix... (4 Replies)
Discussion started by: vidzz911
4 Replies

8. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. with simple example please. Thanks in... (2 Replies)
Discussion started by: phatan
2 Replies

9. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. Thanks in advance. Phatan:) (2 Replies)
Discussion started by: phatan
2 Replies
Login or Register to Ask a Question