Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Executing unix script through Visual Basic

Status
Not open for further replies.

VisualBasicHelp

Programmer
Sep 7, 2005
74
GB
Hi,

Can anybody tell me how can I execute a script in unix through visual basic.

Thanks
 
I don't know what you mean by 'execute a script in UNIX', but I imagine if you save it to a file you can execute it through the dos window.

A wise man once said
"The only thing normal about database guys is their tables".
 
Thanks Alex for replying,

Actually I would like to execute a shell script with .sh extension present in unix.

Using ftp I am able to connect to unix and transfer files through Visual Basic. But now being in VB, I would like to execute the script of unix.

More simpler I need help to execute unix shell script through VB.
 
Can you imagine the security nightmare you're proposing?

On the Unix machine, schedule a job that executes the scripts that you transfer.

 
But I don't think, there can be any harm,if I can run a shell script through VB, which is allready there in unix,with full error resolved. Instead of going to unix and executing the script, I just want the VB to do it for me, so that the person who is not familiar with unix, will not be confused by seeing the unix window.

I am creating a front end application in VB which can interact with unix window.
 
Look into Catalyst Socket Tools. I have done a couple of apps to reset printer queues, reset tty's, check logs etc on an AIX system using Socket Tools and a telnet control. Just make sure you lock down the ability to pass shell commands through your app to limit the security risk. This would be used by someone who would already have shell access anyway, right?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top