Adding exec command

This commit is contained in:
FlUxIuS 2024-06-25 01:02:43 +02:00
parent 80e4bc007f
commit d89545ba7e
No known key found for this signature in database
GPG Key ID: E8B96449EE4FA72F
2 changed files with 35 additions and 0 deletions

View File

@ -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<last_containers>`.
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.

View File

@ -90,6 +90,7 @@ You feel inspired and want to share you cakes, or you have an issues to report o
:hidden: :hidden:
:caption: RF Swift's commands :caption: RF Swift's commands
commands/run_command.rst
commands/run_command.rst commands/run_command.rst
commands/last_containers.rst commands/last_containers.rst
commands/hot_install.rst commands/hot_install.rst