eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'OSProcess::RemoteOSProcess':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: RemoteOSProcess (private in OSProcess

This class is only visible from within OSProcess.

Inheritance:

   Object
   |
   +--OSProcess
      |
      +--OSProcess::RemoteOSProcess

Package:
stx:libbasic
Category:
System-Support
Owner:
OSProcess
Author:
cg

Description:


Instances of RemoteOSProcess represent operating system processes that can be executed
on a remote host. Currently, it assumes that a 'ssh host cmd' works to do this.
Future versions should be configurable as-per host, which remote feature is to be used
(especially needed for windows)


[instance variables:]
    host        String          the host on which to execute the command

[class variables:]


Related information:

    Process

Instance protocol:

accessing
o  host

o  host: aHostName

private
o  startCommand
the 'real' command


Examples:


    |outStream|

    outStream := '' writeStream.

    (OSProcess onHost:'exeptn') 
        command:'ls -l';
        inStream:'abc' readStream;
        outStream:outStream;
        lineWise:true;
        execute.

    outStream contents


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 02:09:40 GMT