C:Execute some_script // to dość rozbudowany skrypt z interakcją użytkownika (ASK, GetInput etc.) kończący się poleceniem EndCLI C:Dir DEVS: // to ma się wykonać, jak góra skończy
@_arti, post #8
...
We talked about the problem of waiting on such a program from the
CLI. This is quite difficult because there is no possible way of
finding out when the program finishes.
This problem is solved now! WaitForTask scans Exec's task lists
regularly and looks for a program name, which is specified when
you run the program. WaitForTask will not return until this task
exists!
Using this command you can easily synchronise your scripts with
self detaching programs.
@_arti, post #8
unsetenv DONE
setenv DONE=1
run execute script1 lab LOOP getenv DONE > NIL: if WARN echo nie ma zmiennej wait 1 skip LOOP back else echo jest zmienna endif echo jakas komenda po wywolaniu skryptu1
@_arti, post #11
@_arti, post #1