|
Class: RemoteOSProcess (private in OSProcess
This class is only visible from within
OSProcess.
Object
|
+--OSProcess
|
+--OSProcess::RemoteOSProcess
- Package:
- stx:libbasic
- Category:
- System-Support
- Owner:
- OSProcess
- Author:
- cg
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:]
Process
accessing
-
host
-
-
host: aHostName
-
private
-
startCommand
-
the 'real' command
|outStream|
outStream := '' writeStream.
(OSProcess onHost:'exeptn')
command:'ls -l';
inStream:'abc' readStream;
outStream:outStream;
lineWise:true;
execute.
outStream contents
|
|