NEmu

Network Emulator for Mobile Universes

Documentation - Usage

NEmu can be used in several ways:

As a dynamic python interpreter

To run NEmu as a dynamic interpreter, just launch it without any arguments (or with the interactive flag):

$ nemu
Welcome to the Network Emulator for Mobile Universes [NEmu]
[nemu]~>
#
# or
#
$ nemu -i
Welcome to the Network Emulator for Mobile Universes [NEmu]
[nemu]~>
#
# or
#
$ nemu --interactive
Welcome to the Network Emulator for Mobile Universes [NEmu]
[nemu]~>

As a script interpreter

To use NEmu as a script launcher, just indicate the path of the script after the source file flag:

$ nemu -f {script.py}
Welcome to the Network Emulator for Mobile Universes [NEmu]
Configuration from
script.py
#
# or
# 
$ nemu --file {script.py}
Welcome to the Network Emulator for Mobile Universes [NEmu]
Configuration from
script.py

You can also load a configuration from a script and then get a dynamic interpreter:

$ nemu -f {script.py} -i
Welcome to the Network Emulator for Mobile Universes [NEmu]
Configuration from
script.py
[nemu]~>

As a module in another python script

To use NEmu as python module, just import it as a classic way:

import nemu
#
# or
#
from nemu import *

PlopNemu()

The PlopNemu function is required in order to start the process watchdog thread. This thread cleans all NEmu sub-processes when they die.
This function is only required when NEmu is used as a python module.

And more...

For additional uses, please look at the NEmu usage:

$ nemu -u
#
# or
# 
$ nemu --usage