home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ornl!utkcs2!darwin.sura.net!spool.mu.edu!sdd.hp.com!hplabs!ucbvax!RELAY.PROTEON.COM!Bill_Horsthemke_at_CTC
- From: Bill_Horsthemke_at_CTC@RELAY.PROTEON.COM
- Newsgroups: comp.sys.apollo
- Subject: Fortran Difference between Apollo / HPUX
- Message-ID: <9211101653.AA06502@monk.proteon.com>
- Date: 10 Nov 92 15:09:00 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: Proteon, Inc., Westborough, MA 01581 [(508)898-2800]
- Lines: 36
-
- I have a Fortran program on an Apollo 10K (BSD environ)
- that does not work on an HP 9000/750 HPUX 8.07.
-
- On the apollo I check if the program is running
- interactively: e.g. a.out
- or a script: e.g. a.out < run.file
-
- The following code snippet works fine on an
- Apollo 10K in BSD environ, but
- on a HP 9000 / 750 HPUX 8.07
-
- C Fortran Code to check if interactive
- C or to get the name of the input file
- CHARACTER*128 RUNFIL
-
- INQUIRE (5,NAME=RUNFIL)
- C it appears that this inquire does not work on HPUX
- C WHH check if this is interactive mode
- IF (INDEX(RUNFIL,'\dev') .NE. 0) THEN
- CHEKINTER = .TRUE.
- ELSE
- CHEKINTER = .FALSE.
- WRITE (*, '(/10X,A//10X,A,$)') RUNFIL
- C the HPUX prints out blanks for RUNFIL
- C while the Apollo writes the name of file redirected to stdin
- C
- ENDIF
-
- Any Ideas would help ? Also I have tried to use getarg
- and iargc, but the linker cannot find them ?
- nm finds them in libf.a.
-
- FYI I do not have access to manuals.
-
- /bill
-
-