Skip to content

Instantly share code, notes, and snippets.

@s3itz
Last active August 29, 2015 14:02
Show Gist options
  • Save s3itz/c2086a612cdef95ab51b to your computer and use it in GitHub Desktop.
Save s3itz/c2086a612cdef95ab51b to your computer and use it in GitHub Desktop.
type file;
app (file o) simulate_app ()
{
simulate stdout=filename(o);
}
foreach i in [1:10] {
string fname=strcat("output/sim_", i, ".out");
file f <single_file_mapper; file=fname>;
f = simulate_app();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment