Hey folks. I'm a noob and I have a very noob question. Feel free to flame me and tell me how easy this one is. I'm trying to perform the system function but I can't get the syntax correct.
Code:
system("emerge -up world | mail -s "RESULTS" $MAIL_ADDRESS");
My problem is with the quotation marks. The mail command requires double quotes around the -s variable("RESULTS") but this seems to be messing up the entire system call.
Thanks in advance.