Passing arguments to a script started through Ubuntu Upstart
Writing by shivdev on Thursday, 9 of October , 2014 at 5:54 pm
If you’re trying to use the –exec option and need to pass in arguments, then you would need to use — to let –exec know that these are arguments to the script that needs to be executed.
# No arguments passed to test.py
exec start-stop-daemon –start –exec python test.py# Arguments (-i $PARAM) passed to test.py
exec start-stop-daemon –start –exec python test.py — -i $PARAM
Leave a comment
- Add this post to
- Del.icio.us -
- Digg -
- -
- Tweet -
-
-
No comments yet.
You must be logged in to post a comment.