string str = "filename";
system( "wget www.someurl.com -O <value of str>" );
123456
std::string str; std::cout << "$ "; std::getline(std::cin, str); system(str.c_str);
12345
string filename = "filename"; string command = "wget www.someurl.com -0 "; command += filename; system( command.c_str() );