home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!ulowell!woods.ulowell.edu!tongb
- From: tongb@woods.ulowell.edu
- Subject: Piping and return code again! Please help !!!
- Message-ID: <1993Jan4.212844.1@woods.ulowell.edu>
- Lines: 23
- Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
- Organization: University of Lowell
- Date: Tue, 5 Jan 1993 02:28:44 GMT
-
-
- Please help!!!!!
-
- How do we make piping works in C for a DOS system?
-
- Dos offers:
-
- c:> program1 | program2
-
- to pass the output of the program1 as the input of the program2. Now if we
- have a C var declared as
-
- char mystring[] = "this is a string";
-
- and we have a DOS program program2.exe which reads a string from stdin and
- return a exit code (used in batch file as errorlevel).
-
- How do I pass mystring to the program2.exe and get a return code in C?
-
- I can't sleep if this problem is not solved. Please help !!!!
-
- tongb@woods.ulowell.edu
-
-