I didn't really know how to even look for the solution for this one. My problem is, how to execute system commands in c++ using function system(); but for more arguments(Come on it sounds awful). Let me explain: Try for example to type something like this in termianl:
lynx www.somewebsiteidunnowhatever.com -get_data
And here we go, empty line asking us for input. You can type something like:
name=travis&age=45&hobby=football
---
After that we would see some result. Now I can't manage how to achievie such behaviour with system(); My c++ script stop responding when that empty line occures. Please help...
lynx
works well with a FIFO on standard input instead of a TTY device. I understand that this is an example, butwget
andcurl
generally do better jobs at downloading stuff from the command line.