diff --git a/source/commands/exec_command.rst b/source/commands/exec_command.rst new file mode 100644 index 0000000..afd7508 --- /dev/null +++ b/source/commands/exec_command.rst @@ -0,0 +1,34 @@ +.. _exec_command: + +run +=== + +To command ``exec`` has some options: + + +.. code-block:: bash + + rfswift exec --help + [...] + Usage: + rfswift exec [flags] + + Flags: + -e, --command string command to exec (required!) + -c, --container string container to run + -h, --help help for exec + -i, --install string install from function script (e.g: 'sdrpp_soft_install') + + +To get the container ID of a previous session, you can issue the command ``last`` documented :ref:`here`. + +Once you have the desired container ID, you can execute a command inside a running or paused container as follows: + +.. code-block:: bash + + rfswift exec -c 83471263e5e5f9951d83ec27dec37ff5273f92411830b3a08d4053c05b773fe7 -e urh + + +.. warning:: + + This command will likely fail if you issue it against a Docker container associated to a build process. \ No newline at end of file diff --git a/source/index.rst b/source/index.rst index 60a90b8..b01fc38 100644 --- a/source/index.rst +++ b/source/index.rst @@ -90,6 +90,7 @@ You feel inspired and want to share you cakes, or you have an issues to report o :hidden: :caption: RF Swift's commands + commands/run_command.rst commands/run_command.rst commands/last_containers.rst commands/hot_install.rst