10.06.2016 Views

eldo_user

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Eldo Control Language<br />

Library of Functions for Tasks<br />

system<br />

Task function category: Functions Operating on Files<br />

Executes the STR_CMD shell command. If no other argument is passed, the result of the<br />

command is displayed on the standard output, otherwise the result is stored in the string<br />

STR_RES, which can be parsed to get the result.<br />

Usage<br />

system(STR_CMD [,STR_RES])<br />

Arguments<br />

• STR_CMD<br />

Shell command.<br />

• STR_RES<br />

String containing the result.<br />

Examples<br />

.define_testbench tb_simu_file (file="")<br />

.include file<br />

.end_define_testbench<br />

.define_task simu_files<br />

set files = ""<br />

set i = 0<br />

set v [] = ""<br />

set res = system("cd ~/testcase;ls *.cir", files)<br />

v = strtok(files, "\n")<br />

for (i=v.imin; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!