I need Terminal + Script together
Edilmar
edilista at intersite.com.br
Mon Oct 31 23:21:16 MET 2005
Edilmar wrote:
> Nate wrote:
>
>> A script to run in what environment? (server? client?) upon logging
>> into an ssh shell?
>>
>> Not seeing the big picture
>>
>> - Nate
>>
>> On 10/29/05, Edilmar <edilista at intersite.com.br> wrote:
>>
>>> Hi,
>>>
>>> I'm using MindTerm 2.4.2 + JDK 1.5.0.
>>> I have integrated the sample codes from RunRemoteCommand.java into one
>>> class mine, and RemoteShellScript.java into other class. All works fine.
>>> Now, I need to integrate both codes, to start a Terminal and run a
>>> script into it, is it possible? I didn't find some class or method to do
>>> both - terminal + script.
>>>
>
> First of all, I need to start a terminal SSH into server, to display the
> messages. Then, into this terminal, I want to start a script
> automatically, without typing anything, only calling a class/method from
> MindTerm to run the script and display the return messages into terminal.
>
> I'm doing a program with a database of scripts. Then, when I get someone
> from a Combobox and click OK button, I want to start a Terminal to run
> the script selected.
>
I think the console.shell() method is limited to run the script in the
server and there is no way to echo the reply messages from server in the
client machine. I run the example "RemoteShellScript" and it only echoes
the commands sent to the server, not the reply from server.
!DSPAM:43665152185942599614895!
More information about the Mindterm-users
mailing list