Following the advice of Ignacio ( Python remove spaces and append ) I am trying to convert the below command to use subprocess rather than os.system.
The script: os.system("/usr/local/bin/growlnotify -n emesene -a emesene -t """+title+""" -m """+text+"""""")
I would of thought: subprocess.call(['/usr/local/bin/growlnotify', '-n emesene', '-a emesene', '-t ""+title+"""', '-m """+text+"""""'], shell=True)
But it doesnt work. Any ideas how to get this working? I've looked at the Python docs and looked here, but i cannot figure it out!
BTW the title and text are variables from emesene messengers notification system