s-news
[Top] [All Lists]

How to make Splus wait: my solution

To: "'s-news@lists.biostat.wustl.edu'" <s-news@lists.biostat.wustl.edu>
Subject: How to make Splus wait: my solution
From: Paul Zador <ZADORP1@WESTAT.com>
Date: Mon, 26 Feb 2001 11:09:24 -0500
I found a simple solution to the problem I posed. It seems to work under Win
98:

Define:
t1      <-proc.time()
progt <- dos.time(mart or any other program executing c or fortran code)
'deltatime' determined experimantally 

and then use the repeat loop to make Splus wait until current proc.time() -
t1 exceeds
progt + deltatime. The latter is the time it takes to run the code plus an
experimentally determined 'cleanup time'

Paul Zador

-----Original Message-----
From: Paul Zador 
Sent: Thursday, February 22, 2001 12:04 PM
To: ' s-news@lists.biostat.wustl.edu '
Cc: Barnali Das; Richard Valliant
Subject: How to make Splus wait



The short version of the query: 
Splus takes a while to execute a call to a function that includes compiled
FORTRAN code. How can one make Splus delay the execution of the next Splus
command until the function is done?

Some details:
MART is a data mining tool that was ipmlemented in Splus by J. Friedman
(jhf@stat.stanford.edu). In single runs, MART works fine. I'd like to
automate running MART repeatedly with no human supervision. Unfortunately,
MART does not provide a visible return code for signaling run completion to
Splus so that if other commands follow the call to MART, Splus will start
them without waiting for files generated by the last MART run, and the next
command will fail, or fail to execute properly. 

Users have no direct access to the parts of the MART routines that are
written in FORTRAN. 

I am running the current release of MART using Splus2000 on one computer
under Windows 95 and on another under Windows 98. 

Paul Zador

WESTAT
1650 Research Blvd
Rockville MD 20850
(301)294-2825
Zadorp1@westat.com
zadorpaul@erols.com

<Prev in Thread] Current Thread [Next in Thread>
  • How to make Splus wait: my solution, Paul Zador <=