home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19560 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.8 KB  |  46 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!cbnewsl!att-out!pacbell.com!UB.com!pippen.ub.com!rfries
  3. From: rfries@sceng.ub.com (Robert Fries)
  4. Subject: Re: Executing DOS commands from program
  5. Message-ID: <rfries.168@sceng.ub.com>
  6. Sender: news@pippen.ub.com (The Daily News)
  7. Nntp-Posting-Host: 128.203.1.151
  8. Organization: Ungermann Bass
  9. References: <1993Jan11.214706.11039@athena.mit.edu>
  10. Date: Mon, 11 Jan 1993 23:21:37 GMT
  11. Lines: 33
  12.  
  13. In article <1993Jan11.214706.11039@athena.mit.edu> acgoldis@athena.mit.edu (Andrew C Goldish) writes:
  14.  
  15. >  I am writing a Microsoft C program to be run on computer A which is supposed to
  16. >get a command from the user (no problem) and execute it ON COMPUTER B, with any
  17. >errors and results from computer B's calculation sent back to computer A.  How
  18. >exactly do I do this?  Borland C (or at least Pascal) has an EXEC function, but
  19. >I can't use that here.  The command is stored as char comnd[255] or so.
  20.  
  21. >                                                       A. Goldish
  22.  
  23. This is a really big question. You mention Microsoft C, and Borland, so I 
  24. assume you're talking about MSDOS.
  25.  
  26. Some questions follow. How are computers A and B connected? Are both 
  27. running MSDOS ? Is computer B dedicated to running commands from computer A?
  28. Is A supposed to wait for the result, or periodically check with B for
  29. completion?
  30.  
  31. These are just the first few questions that come to mind. Your question,
  32. as stated, cannot be answered.
  33.  
  34. Except, perhaps, with "It can't be done".
  35.  
  36. Robert
  37.  
  38. //////////////////////////////////////////////////////////////////////////
  39. Robert Fries
  40. Ungermann-Bass Inc.
  41.  
  42. DISCLAIMER:
  43.     Opinions contained herein are my own, and are not necessarily those
  44.     of Ungermann-Bass.
  45. //////////////////////////////////////////////////////////////////////////
  46.