Results 1 to 3 of 3

Thread: Losing a connection when concatenating vbCrLf

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2016
    Posts
    2

    Losing a connection when concatenating vbCrLf

    Hi,

    I am developing a VB script to access a Unix server to run a series of commands and
    ultimately execute a script. I am using the OstroSoft Winsock Component to make the connection
    and then I am attempting to log in. The script runs fine when a issue SendData without concatenating
    vbCrLf. The problem that presents is I am maintaining my connection (state = 7) which is good, but without the
    carriage return / line feed I believe that I am just send a long unrecognized string to the server.
    When I have the vbCrLf added the connection closes (state =0). I'm hoping that someone may be able to shed some
    light on the issue or help me code it correctly. I am running on Windows 7.

    ex. Winsock1.SendData dbrown & vbCrLf

    Thanks
    David

  2. #2
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,582

    Re: Losing a connection when concatenating vbCrLf

    Since you're talking to a Unix server, have you tried just sending a Lf and not CrLF?
    Winsock1.SendData dbrown & vbLf

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2016
    Posts
    2

    Re: Losing a connection when concatenating vbCrLf

    Thanks for the response. I have tried every combination without success

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