Reputation: 3
char *mycmd = "gnome-terminal --profile 'me' -e '/usr/bin/programA --file/usr/bin/config/myconfig.ini --name="programA" --loggingLevel=1'";
popen(mycmd, "r");
Error on 1st line: error: expected ';' before 'Node'
I know this is because of the "" for --name
Is there anyway to get this command to work?
Upvotes: 0
Views: 284
Reputation: 20868
Escape the double quotes :
char *mycmd = "gnome-terminal --profile 'me' -e '/usr/bin/programA --file/usr/bin/config/myconfig.ini --name=\"programA\" --loggingLevel=1'";
Upvotes: 2