'sim cd_output' command

Issue #29 closed
Frank Löffler created an issue

It would be nice to have a short command to change the current directory to the output directory of a certain simulation.

Keyword:

Comments (2)

  1. anonymous
    • changed status to resolved
    • removed comment

    I could not figure out a way to make simfactory automatically cd to a directory and have that change of a directory stick when simfactory exited. So I did what I could:

    There's a new command,

    sim get-output-dir <simulationname> [--restart-id=<id>]

    It outputs something like the following:

    [mwt@eric2 simfactory]$ bin/sim get-output-dir refact_test DEBUG: Simfactory command: bin/../lib/sim.py "get-output-dir" "refact_test" DEBUG: Version exported The Simulation Factory: Manage Cactus simulations

    Info: defs: /work/mwt/cactus/Cactus/simfactory/etc/defs.ini Info: defs.local: /work/mwt/cactus/Cactus/simfactory/etc/defs.local.ini Executing command: get_output_dir Simulation name: refact_test Output directory: /work/mwt/simulations/refact_test/output-0003/qc0-mclachlan

    From there, you can just copy and paste the output dir and go to it.

  2. Log in to comment