Python is driving me crazy; I always have difficulty using variables in PATH. My version is Python 2.4.3
>>> import os
>>> a = "httpd"
>>> cmd = '/etc/init.d/+a restart'
>>> print cmd
/etc/init.d/+a restart
>>>
How do I put a /etc/init.d/httpd in cmd variable so I can use os.system(cmd)?