Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 543fb48f7ac6afff3e0b68e9becc5c3b > files > 151

sems-1.4.3-8.fc18.x86_64.rpm

-- 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;