EldoS | Feel safer!

Software components for data protection, secure storage and transfer

ExecuteCommand with multiple commands

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#18283
Posted: 11/23/2011 04:47:02
by jiins (Standard support level)
Joined: 06/27/2011
Posts: 14

If I run
Code
TElSimpleSSHClient.ExecuteCommand("w;time")
as response I get only the result of the "time" command. Any way to get the combined response of multiple commands in one shot?

Thanks
#18284
Posted: 11/23/2011 04:52:10
by Ken Ivanov (EldoS Corp.)

ExecuteCommand() does not support multiple commands, sorry. Please consider using the component in "sophisticated" mode, by assigning a list of commands to the Commands property and running the Open/ReceiveData/Close cycle.
#18285
Posted: 11/23/2011 05:32:20
by Eugene Mayevski (EldoS Corp.)

The question is more complicated. What you send to the server in your code is one command, however it is OS- and server-dependent on how to execute it and how to route output. So for maximum portability you should really use either Commands property or use shell channel.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 760 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!