PDA

Click to See Complete Forum and Search --> : execute unix command from VB ?


mikyunga
Oct 29th, 1999, 09:38 AM
Hi,

I'm Mikyung Kim from South Korea.
I'm a programmer using VB6.0, and I got very big problem in my project.
I need to transfer a file made on client(PC, Win98) to the Unix Server.
But, that's not big one. I used the inet control with TCP protocol.
Then, I have to print that file through specific printer server.
However I couldn't execute 'lp' command on FTP connection.
How can I execute unix shell command using VB6.0 ?
Please, help me~ ! Thank you ...

Manish
Oct 29th, 1999, 11:43 AM
hi
I don't know how u can exactly achive that... but have one suggestion.. u can create a shell in vb and after that you can send command to that shell. commands are there in MSDN. if u need anymore help pls feel free to ask.
Thank Manish

mikyunga
Oct 29th, 1999, 12:24 PM
Thanks for your reply..
Do you mean there's a command in VB to execute unix shell command ?
May I get more detail information?
I don't know what to do exactly.
Thanks.

[This message has been edited by mikyunga (edited 10-30-1999).]

Manish
Oct 29th, 1999, 03:31 PM
hi
No there is no command for unix shell in Vb what i am trying to say is, that u can chear a shell under MSVDM and thruwhich u can commect to unix....and like u can execute command in that window u can also send commands to that window.
the command is SHELL.
Thanx Manish

CarlosTheJackal
Oct 29th, 1999, 09:17 PM
Hey- This may not be what you want, but...
You can try to connect to the computer w/ the winsock control on port 23(telnet) and login then you can execute whatever commands you need.

Hope this helped...
Thnx For Your Time,
CarlosTheJackal

Nov 1st, 1999, 01:05 AM
Delphi 5 is what you want. Code apps in windows and compile them into unix/linix app.

CAPHS
Oct 1st, 2000, 05:56 AM
just use the telnet control to connect, wait for the login and password prompts.. then issue 'lp' with the appropriate parameters as if you had logged in yourself.