Double quotes in execute shell

11 views
Skip to first unread message

Roman Naumenko

unread,
Dec 22, 2014, 11:33:46 AM12/22/14
to jenkins...@googlegroups.com
Hi,

What's the proper way to pass variable like this?

#!/bin/bash
python manage.py config_server --base_dir /app/vr1 --socket :4555 test -u ubuntu -g ubuntu --extra logger=syslog:uwsgi-omega --extra log-format=%(addr) - %(user) [%(ltime)] "%(method) %(uri) %(proto)" %(status) %(size) "%(referer)" "%(uagent)" 

logger gets expanded as in uwsgi ini file as
log-format=%(addr) - %(user) [%(ltime)] "%(method) %(uri) %(proto)" %(status) %(size) "%(referer)" "%(uagent) 

Thanks,
Roman

Roman Naumenko

unread,
Dec 22, 2014, 4:03:55 PM12/22/14
to jenkins...@googlegroups.com
Never mind, python app wasn't processing arguments correctly.
Reply all
Reply to author
Forward
0 new messages