|
84736 packages online
|
|
|
|
|
|
No screenshot available
|
|
waitback-0.3
--------------
---
This is 'waitback' a much better sync. than system 'wait'.
---
NOTES:
Requires 68000+, OS 2.04+, 8192+ bytes of free memory
Returns 0 if task wasnt found and 5 upon successful operation.
Outputs text if it wasnt able to find requested task, so you may like
to >nil: it.
---
NEWS:
[09-Mar-2009] 0.3 Cleaner, better, quicker
[25-May-2008] 0.2 Last example didnt work, due to fact
that the value was 0(no checks...).
---
USAGE:
*** template: waitback <task/a> [arg] [timeout/n] [ic/s]
<task/a> - name of a task or process, you can specify exact
"taskname" or exact "[procname]" or partial name
together with [ic/s], or task address($XXXXXXXX,
0xX[XXXXXXX]) or CLI number.
[timeout/n] - timeout, 10 seconds by default, one check per sec.
[arg] - where to search for a <task/a>:
t - in tasks (default)
p - in ports
b - both
[ic/s] - ignores case and does patternal search.
---
EXAMPLES:
; sync with exact name(CLI process)
run >nil: c:task
waitback [c:task]
; sync with exact name if task creates port = 'TASK'
run >nil: task
waitback TASK p
; sync Workbench program and give up after 5 seconds
wbrun task
waitback task 5
; try detect some task at all
waitback >nil: task 1 ic
if warn
echo "found!"
else
echo "not found!"
endif
---
megacz@usa.com
|
Contents of util/cli/waitback.lha
PERMSSN UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 273 473 57.7% -lh5- 90fd Mar 10 01:53 waitback-0.3/SMakefile
[generic] 1481 2012 73.6% -lh5- 99dd Mar 10 02:49 waitback-0.3/waitback
[generic] 3024 10512 28.8% -lh5- 5d9e Mar 10 02:36 waitback-0.3/waitback.c
[generic] 774 1636 47.3% -lh5- c0ca Mar 21 18:00 waitback-0.3/waitback.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 4 files 5552 14633 37.9% Mar 25 18:57
|
|
|
|
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminetaminet net> |