Reputation: 380
I am trying to give --max-depart-delay
option with sumo but doesn't proceed. How I can pass options to sumo
with sumo-launchd.py
?
I have tried following command
sumo-launchd.py -vv -c sumo --max-depart-delay -1
Upvotes: 0
Views: 974
Reputation: 1821
sumo-launchd.py
executes the command given by the -c
option. By default this is sumo
which is resolved by searching your $PATH
variable.
When you execute the given command, python interprets --max-depart-delay
as another argument for sumo-launchd.py
which does not make sense because it does not exist:
Usage: sumo-launchd.py [options]
sumo-launchd.py: error: no such option: --max-depart-delay
Therefore, you want to indicate that max-depart-delay
is an option for the SuMO command to be executed and not for the launch daemon by surrounding it with ''
or ""
:
sumo-launchd.py -vv -c 'sumo --max-depart-delay -1'
sumo-launchd.py -vv -c "sumo --max-depart-delay -1"
Logging to /tmp/sumo-launchd.log
Listening on port 9999
Upvotes: 2