mirror of https://github.com/sipwise/sems.git
example: sys.popen($myresult="/bin/ls wav/*"); logVars(2);sayer/1.4-spce2.6
parent
46242169a3
commit
042b073780
@ -0,0 +1,17 @@
|
||||
-- test popen
|
||||
import(mod_sys);
|
||||
import(mod_utils);
|
||||
|
||||
initial state START
|
||||
enter {
|
||||
log(1,"Got into START state.");
|
||||
sys.popen($myresult="/bin/ls wav/*");
|
||||
logVars(2);
|
||||
utils.splitStringCR($myresult);
|
||||
logVars(2);
|
||||
stop(true);
|
||||
};
|
||||
|
||||
transition "error executing" START - exception; test(#type==popen) / logParams(1); stop(true) -> END;
|
||||
transition "error closing" START - exception; test(#type==pclose) / logParams(1); stop(true) -> END;
|
||||
state END;
|
||||
Loading…
Reference in new issue