home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Headers / misckit / MiscRemoteSubprocess.h < prev    next >
Encoding:
Text File  |  1994-03-23  |  1.2 KB  |  43 lines

  1. //
  2. //    MiscRemoteSubprocess.h -- a Obj-C wrapper around "rsh"
  3. //        Originally written by Drew Davidson
  4. //        Copyright (c) 1994 by Drew Davidson.
  5. //        Modified by Don Yacktman for inclusion into the MiscKit.
  6. //                Version 1.0.  All rights reserved.
  7. //        This notice may not be removed from this source code.
  8. //
  9. //    This object is included in the MiscKit by permission from the author
  10. //    and its use is governed by the MiscKit license, found in the file
  11. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  12. //    for a list of all applicable permissions and restrictions.
  13. //    
  14.  
  15. /*----------------------------------------------------------------------------
  16.     $Source$
  17.  
  18.     REVISIONS
  19.     $Log$
  20. ----------------------------------------------------------------------------*/
  21. #import <misckit/MiscSubprocess.h>
  22.  
  23. @interface MiscRemoteSubprocess : MiscSubprocess
  24. {    /*
  25.      * Other instance variables
  26.      */
  27.     id            host;
  28.     int        remoteExitCode;
  29. }
  30.  
  31. + (const char *)thisHost;
  32.  
  33. /*
  34.  * Sets the host on which the command will run.  Setting the
  35.  * host name is allowed only if the subprocess is not running.
  36.  */
  37. - setHost:(const char *)aString;
  38. - (const char *)host;
  39.  
  40. - execute:(const char *)aString onHost:(const char *)hostname;
  41.  
  42. @end
  43.