#29: 'sim cd_output' command --------------------------+------------------------------------------------- Reporter: knarf | Owner: mthomas Type: enhancement | Status: closed Priority: minor | Milestone: Component: SimFactory | Version: Resolution: fixed | Keywords: --------------------------+------------------------------------------------- Changes (by mthomas):
* status: new => closed * resolution: => fixed
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.