//$OPT {replaceTags}

Issue #30 resolved
Ville Rantanen created an issue

esp, for --pipe, i would like to

//$OPT --pipe "tee {pipelineName}.log"

perhaps other replacements too?

  • {executionFolder}

Comments (2)

  1. Ville Rantanen reporter

    Could the run environment add a variable "$ANDURIL_EXECUTION_DIR"?

    I added this in the anduril executable and it works quite nice.. then you can have a header like this:

    #!/usr/bin/env anduril
    //$OPT --pipe "tee $ANDURIL_EXECUTION_DIR/_log"
    //$OPT --pipe "anduril-pager --ls -t --title $ANDURIL_EXECUTION_DIR"
    

    Also, one can circumvent the problem, by adding a variable manually,

    #!/usr/bin/env anduril
    //$PRE EXEC=result_of_analysis
    //$OPT -d $EXEC
    //$OPT --pipe "tee $EXEC/_log"
    //$OPT --pipe "anduril-pager --ls -t --title $EXEC"
    

    but then you cannot have a generic header..

  2. Log in to comment