OS4 DepotLogo by invent 
(anonymous IP: 216.73.216.118,2453) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (347)
   o Datatype (51)
   o Demo (204)
   o Development (617)
   o Document (24)
   o Driver (100)
   o Emulation (154)
   o Game (1034)
   o Graphics (513)
   o Library (120)
   o Network (237)
   o Office (67)
   o Utility (947)
   o Video (73)

Total files: 4488

Full index file
Recent index file

 Links

  Amigans.net
  Aminet
  IntuitionBase
  Hyperion Entertainment
  A-Eon
  Amiga Future


Support the site


 Readme for:  Utility » Script » waitfile.lha

waitfile

Description: waits for a specified file
Download: waitfile.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 5kb
Version: 1.1
Date: 10 Mar 2026
Author: Lorence Lombardo
Submitter: Lorence Lombardo
Email: lorylombus/gmail com
Homepage: http://geocities.ws/lorylomb/
Category: utility/script
Replaces: utility/script/waitfile.lha
License: Public domain
Distribute: yes
Min OS Version: 4.0
FileID: 13733
 
Comments: 1
Snapshots: 0
Videos: 0
Downloads:  (Current version)
27  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
Architecture: m68k-amigaos; ppc-amigaos; ppc-morphos


 waitfile 1.1 (c) 2026  Lorence Lombardo.

?

"waitfile" waits for a specified file without sucking the guts out of
your CPU since checks are made in every one tenth of a second intervals.

It is currently believed that using "waitfile" in your DOS script
is superior to doing it entirely with the DOS script.

So "waitfile" would replace the following:-

lab top
if exists $prefix:home/$user/Public/tmp/ffp.tmp
   set sz `c:list $prefix:home/$user/Public/tmp/ffp.tmp LFORMAT "%L"`
   if val $sz not GT 0
      c:wait 1
      skip back top
   endif
else
   c:wait 1
   skip back top
endif

with:-

c:waitfile $prefix:home/$user/Public/tmp/ffp.tmp

.

Of coarse "waitfile" can be aborted with a Ctrl-c if your file
decides to not show up.

"waitfile" has been tested on 68k and on the native sides of WinUAE
and AmiBerry when waiting for redirection files.

NB:  Zero byte files do not count.


Standard disclaimer:-

If you decide to use this material you do so at your own risk.

 
Related URL's:-

http://geocities.ws/lorylomb/file_ab.txt
http://geocities.ws/lorylomb/file_ab.lha 
http://geocities.ws/lorylomb/mms_68k_uae.txt
http://geocities.ws/lorylomb/mms_68k_uae.lha





Copyright © 2004-2026 by Björn Hagström All Rights Reserved