home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- 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
- From: rfries@sceng.ub.com (Robert Fries)
- Subject: Re: Executing DOS commands from program
- Message-ID: <rfries.168@sceng.ub.com>
- Sender: news@pippen.ub.com (The Daily News)
- Nntp-Posting-Host: 128.203.1.151
- Organization: Ungermann Bass
- References: <1993Jan11.214706.11039@athena.mit.edu>
- Date: Mon, 11 Jan 1993 23:21:37 GMT
- Lines: 33
-
- In article <1993Jan11.214706.11039@athena.mit.edu> acgoldis@athena.mit.edu (Andrew C Goldish) writes:
-
- > I am writing a Microsoft C program to be run on computer A which is supposed to
- >get a command from the user (no problem) and execute it ON COMPUTER B, with any
- >errors and results from computer B's calculation sent back to computer A. How
- >exactly do I do this? Borland C (or at least Pascal) has an EXEC function, but
- >I can't use that here. The command is stored as char comnd[255] or so.
-
- > A. Goldish
-
- This is a really big question. You mention Microsoft C, and Borland, so I
- assume you're talking about MSDOS.
-
- Some questions follow. How are computers A and B connected? Are both
- running MSDOS ? Is computer B dedicated to running commands from computer A?
- Is A supposed to wait for the result, or periodically check with B for
- completion?
-
- These are just the first few questions that come to mind. Your question,
- as stated, cannot be answered.
-
- Except, perhaps, with "It can't be done".
-
- Robert
-
- //////////////////////////////////////////////////////////////////////////
- Robert Fries
- Ungermann-Bass Inc.
-
- DISCLAIMER:
- Opinions contained herein are my own, and are not necessarily those
- of Ungermann-Bass.
- //////////////////////////////////////////////////////////////////////////
-