SSH COM - WeOnlyDo Discussion board

SSH COM (General questions)

by hadi, Monday, August 20, 2007, 13:36 (6305 days ago)

Hi,
i have problem with ssh com, i want delete/disactivate echo message/command from the server, it is possible with ssh com?

thank's...

Re: SSH COM

by wodSupport, Monday, August 20, 2007, 13:40 (6305 days ago) @ hadi

Hadi,

in what scenario would you want to do that? What WeOnlyDo component are you using?

Kreso

Re: SSH COM

by hadi, Monday, August 20, 2007, 13:50 (6305 days ago) @ wodSupport

Hadi,

in what scenario would you want to do that? What WeOnlyDo component are you using?

Kreso

I use the version: 2.3.4, makes some I want to recover the results of the order and not the orders + results
can you help me[:smile:]

Re: SSH COM

by wodDamir, Monday, August 20, 2007, 14:12 (6305 days ago) @ hadi

Hi Hadi,

Are you sure this isn't actually returned from server?

Maybe this article would help?

http://www.weonlydo.com/index.asp?forum=1&action=view&topic=1114545353#1114545353

You could simply remove the first line from the received data.

Hope this helps.

Regards,
Damba

Re: SSH COM

by hadi, Monday, August 20, 2007, 14:48 (6305 days ago) @ wodDamir

Hi Hadi,

Are you sure this isn't actually returned from server?

Maybe this article would help?

http://www.weonlydo.com/index.asp?forum=1&action=view&topic=1114545353#1114545353

You could simply remove the first line from the received data.

Hope this helps.

Regards,
Damba

thank you to your help, but I have another problem, I use vb6, when I call the method ssh.connect an error message occurs: You system did not provide string representation of the error .

can you help me....thanks.

hadi

Re: SSH COM

by wodSupport, Monday, August 20, 2007, 14:52 (6305 days ago) @ hadi

Can you download latest version from our website and try it? Make sure you do not apply any 3rd party patches on it. I'm sure it will work.

Kreso

Re: SSH COM

by hadi, Tuesday, August 21, 2007, 12:44 (6304 days ago) @ wodSupport

Can you download latest version from our website and try it? Make sure you do not apply any 3rd party patches on it. I'm sure it will work.

Kreso

Hello,
Does the SSH.Send method impose a limit in the number of byte sent, i.e. which is the maximum size (in ocktet) of the method send in ssh

Thank you.

Re: SSH COM

by wodDamir, Tuesday, August 21, 2007, 13:41 (6304 days ago) @ hadi

Hadi,

No, there is no limit on how much data is sent, but the amount of data shouldn't exceed 64k.

You can find more information on Send Method from the following link:

http://www.weonlydo.com/SSH/Help/WODSSHLib~wodSSH~Send.html

Regards,
Damba

Re: SSH COM

by hadi, Tuesday, August 21, 2007, 14:10 (6304 days ago) @ wodDamir

Hadi,

No, there is no limit on how much data is sent, but the amount of data shouldn't exceed 64k.

You can find more information on Send Method from the following link:

http://www.weonlydo.com/SSH/Help/WODSSHLib~wodSSH~Send.html

Regards,
Damba

All my problems are regulated thank you, it remains to me just only one: how I can desactivate the echo of the Server, in reality I use ssh COM to access to database, when I send my SQL order I receive my SQL order and the result of my SQL order and in the Recieve method I recover block data and not lines. Do you know an order under Unix which desactivate the echo from the Server, if not what to make in this case. Cash on your usual collaboration.

Re: SSH COM

by wodDamir, Tuesday, August 21, 2007, 14:16 (6304 days ago) @ hadi

Hadi,

As I said in my previous reply's, I don't think that's an echo. That's actually what server returned.

Can you show me a few lines that you receive?

Regards,
Damba

Re: SSH COM

by hadi, Tuesday, August 21, 2007, 14:50 (6304 days ago) @ wodDamir

Hadi,

As I said in my previous reply's, I don't think that's an echo. That's actually what server returned.

Can you show me a few lines that you receive?

Regards,
Damba

Order commands : (with send method)
==================================================
sqlplus -s mdp/mdp
set MARKUP HTML ON HEAD <title>HadiSSH</title>
set pagesize 50000
select * from dual;
exit
==================================================

Receive : (with receive method)
==================================================
sqlplus -s mdp/mdp
set MARKUP HTML ON HEAD <title>HadiSSH</title>
set pagesize 50000
select * from dual;
exit
D - X $ <------- Result.

Re: SSH COM

by wodDamir, Tuesday, August 21, 2007, 15:26 (6304 days ago) @ hadi

Hadi,

Perhaps you could use Execute method?

The result of the Execute method should contain what you expect to receive, and removes it from buffer (so it isn't received in Received Event).

Regards,
Damba

Re: SSH COM

by hadi, Wednesday, August 22, 2007, 11:34 (6303 days ago) @ wodDamir

Hadi,

Perhaps you could use Execute method?

The result of the Execute method should contain what you expect to receive, and removes it from buffer (so it isn't received in Received Event).

Regards,
Damba

hi,
If I use the method Execute the Receive event will not function myself, how in this case there I can recover my results

Re: SSH COM

by wodDamir, Wednesday, August 22, 2007, 12:37 (6303 days ago) @ hadi

Hi Hadi,

What do you mean by Receive Event won't function?

Everything that is not received using the Execute method will be received in the Receive Event.

Regards,
Damba