![]() | Logo by DBAlex (anonymous IP: 10.1.175.98,0) | |||||||||||
| ||||||||||||
Audio (347) Datatype (51) Demo (204) Development (617) Document (24) Driver (100) Emulation (154) Game (1034) Graphics (513) Library (120) Network (237) Office (67) Utility (947) Video (73) Total files: 4488 Full index file Recent index file
 Amigans.net  OpenAmiga  Aminet  UtilityBase  IntuitionBase  AmigaBounty
Support the site
|
[Show comments] [Show snapshots] [Show videos] [Show content] [Show crashlogs] 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 (c) 2004-2026 by Björn Hagström All Rights Reserved Amiga OS and its logos are registered trademarks of Hyperion Entertainment |