Re: wodSSH in C++ Builder - WeOnlyDo Discussion board

Re: wodSSH in C++ Builder (General questions)

by Ryan Crosby, Wednesday, August 31, 2005, 23:29 (7023 days ago) @ wodSupport

Hi,

Thanks for the help, I am only using the trial version right now to see if I can get it to do what I want it to do so I don't know much about it. I have only been programming for about a month and a half as well, so I appreciate any help that I can get trying to learn. I have been a help file hero trying to learn how to use wodSSH, as well as the built in functions to the C++ Builder VCL. I noticed in the help file it mentions referencing & vbLf to process a line feed after the BSTR you send to the server. I'm assuming you must do this as well in C++ using either
or
? As far as creating an app that only has preset functions and no user interactive input on the server is it recommended to use either the Execute() or WaitFor() method and not utilize the prompt received event. The reason I ask is because the prompt for the server changes once I use the su command login as root- from ending in $ to #. I thought about trying to use a static in counter for figuring out which command to fire, but I can't seem to initialize one in C++ Builder. Any advice on how to tackle that would be great, thanks again for the help!!


Ryan


Complete thread: