Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!decwrl!sgi!shinobu!odin!dinkum!calvin From: calvin@dinkum.wpd.sgi.com (Calvin H. Vu) Newsgroups: comp.sys.sgi Subject: Re: A fortran routine to call system time and host address Message-ID: <1991Jan16.220850.13144@odin.corp.sgi.com> Date: 16 Jan 91 22:08:50 GMT References: <1991Jan15.163103.29660@ms.uky.edu> Sender: news@odin.corp.sgi.com (Net News) Organization: Silicon Graphics, Inc. Mountain View, CA Lines: 26 In <1991Jan15.163103.29660@ms.uky.edu> hongde@s.ms.uky.edu (Hongde Luo) writes: | We try to send a objective fortran file to someone to use. However, | we want to limit the time and machine on which the program is to be | used. For instance, we want this user to have access to the file | before July 1, 1991 and he can use this only on a certain SGI machine. | Are there any specific command or utilities in fortran to check | the clock time and ethernet address? You can write a Fortran-callable [by appending a '_' to the routine name] C routine to check for the time and/or system id. The functions to use are sysid() and time() [or some variations of it]. | -- | ************************>>>> Hongde Luo <<<<************************* | * Center for Computational Science | 1320 Nancy Hanks Rd. #5 * | * University of Kentucky | Lexington, KY 40504-1243 * | * Lexington, KY 40506 | (606)-254-2331 (h) | 257-8741 (work) * - calvin -- ----------------------------------------------------------------------------- Calvin H. Vu | "We are each of us angels with only one Silicon Graphics Computer Systems | wing. And we can only fly embracing calvin@sgi.com (415) 962-3679 | each other."