home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / programm / 7893 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  798 b 

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: pmuellr@vnet.ibm.com (Pat Mueller)
  3. Message-ID: <19930122.081454.949@almaden.ibm.com>
  4. Date: Fri, 22 Jan 93 11:11:29 EST
  5. Newsgroups: comp.os.os2.programmer
  6. Subject: Re: Can a REXX prog recognize redirection?
  7. Lines: 12
  8.  
  9. >Is there a way for a REXX program to recognize when stdin
  10. >is being redirected from a file or pipe instead of being
  11. >read from the keyboard?
  12.  
  13. What you're looking for is the rexx equivalent of the C API
  14. DosQueryHType().  I don't know of one available from IBM.  It
  15. wouldn't be too difficult to write a function DLL that implemented
  16. one though (the toolkit has source for the REXXUTIL function package
  17. you could use as a basis).
  18.  
  19. Patrick Mueller                  addr:  pmuellr@vnet.ibm.com
  20. IBM Cary, North Carolina         phone: 919-469-7242
  21.