update to running user scripts in install doc
This commit is contained in:
parent
1212e5ddf8
commit
0be1972a29
1 changed files with 16 additions and 12 deletions
|
@ -136,19 +136,28 @@ installed virtual environment.
|
||||||
|
|
||||||
> **NOTE:** the following assumes CORE has been installed successfully
|
> **NOTE:** the following assumes CORE has been installed successfully
|
||||||
|
|
||||||
One way to do this would be to enable the core virtual environment shell.
|
There is an invoke task to help with this case.
|
||||||
|
```shell
|
||||||
|
cd $REPO
|
||||||
|
inv -h run
|
||||||
|
Usage: inv[oke] [--core-opts] run [--options] [other tasks here ...]
|
||||||
|
|
||||||
|
Docstring:
|
||||||
|
runs a user script in the core virtual environment
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-f STRING, --file=STRING script file to run in the core virtual environment
|
||||||
|
-s, --sudo run script as sudo
|
||||||
|
```
|
||||||
|
|
||||||
|
Another way would be to enable the core virtual environment shell. Which
|
||||||
|
would allow you to run scripts in a more **normal** way.
|
||||||
```shell
|
```shell
|
||||||
cd $REPO/daemon
|
cd $REPO/daemon
|
||||||
poetry shell
|
poetry shell
|
||||||
python run /path/to/script.py
|
python run /path/to/script.py
|
||||||
```
|
```
|
||||||
|
|
||||||
Another way would be to run the script directly by way of poetry.
|
|
||||||
```shell
|
|
||||||
cd $REPO/daemon
|
|
||||||
poetry run python /path/to/script.py
|
|
||||||
```
|
|
||||||
|
|
||||||
## Manually Install EMANE
|
## Manually Install EMANE
|
||||||
|
|
||||||
EMANE can be installed from deb or RPM packages or from source. See the
|
EMANE can be installed from deb or RPM packages or from source. See the
|
||||||
|
@ -203,8 +212,3 @@ Options:
|
||||||
-p STRING, --prefix=STRING prefix where scripts are installed, default is /usr/local
|
-p STRING, --prefix=STRING prefix where scripts are installed, default is /usr/local
|
||||||
-v, --verbose enable verbose
|
-v, --verbose enable verbose
|
||||||
```
|
```
|
||||||
|
|
||||||
Example running a core user script:
|
|
||||||
```shell
|
|
||||||
inv run /path/to/core/grpc/script.py
|
|
||||||
```
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue