Open readbeyond opened 7 years ago
I was not aware that vagrant ssh supports the -c
option. (I do not use the Vagrant image myself.) That is quite interesting, thank you.
I am not sure if I understand correctly your suggestion, though.
What I understood is that you would like to be able to run, in the host OS, something like:
$ vagrant_aeneas_task audio.mp3 text.txt "..." out.srt
and vagrant_aeneas_task
should basically run vagrant ssh -c
, passing the other command line parameters. If this is what you want, then it can be done with a simple bash script, like this:
#!/bin/bash
# check on the number of parameters, omitted here...
# the paths should be actually expressed relative to the shared directory
AUDIO=$1
TEXT=$2
CONF=$3
OUT=$4
# maybe we want to pass other parameters (-l -r="..." etc) as well...
vagrant ssh -c "python -m aeneas.tools.execute_task /vagrant/$AUDIO /vagrant/$TEXT $CONF /vagrant/$OUT"
Does this make sense?
From https://github.com/readbeyond/aeneas/issues/176#issuecomment-301203596 :