Results 1 to 7 of 7

Thread: execute unix command from VB ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Location
    Seoul, Korea
    Posts
    2

    Post

    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 ...

  2. #2
    Lively Member
    Join Date
    Apr 1999
    Location
    India
    Posts
    73

    Post

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Location
    Seoul, Korea
    Posts
    2

    Post

    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).]

  4. #4
    Lively Member
    Join Date
    Apr 1999
    Location
    India
    Posts
    73

    Post

    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

  5. #5
    Member
    Join Date
    Feb 1999
    Location
    ,Mo,USA
    Posts
    36

    Post

    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

  6. #6
    Guest

    Post

    Delphi 5 is what you want. Code apps in windows and compile them into unix/linix app.

  7. #7
    Lively Member
    Join Date
    Apr 2000
    Posts
    70
    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.

    Daniel Rose
    VB 5.0 Enterprise.
    irc:irc2.dynam.ac

    If TheCodeInTheSig() Is Not Lame() Then IDontKnowWhatIs()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width