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