EldoS | Feel safer!

Software components for data protection, secure storage and transfer

ExecuteCommand with multiple commands

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
Posted: 11/23/2011 04:47:02
by jiins (Standard support level)
Joined: 06/27/2011
Posts: 14

If I run
as response I get only the result of the "time" command. Any way to get the combined response of multiple commands in one shot?

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



Topic viewed 750 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!