Follow-up Comment #10, bug #51181 (project wget): Hi Peter
Ok, sorry my example was bad. This is my actual example below. This program reproduces the issue jonny@asus:~/code$ g++ -O2 -Wall -Wextra -Wpedantic -o main main3.cpp jonny@asus:~/code$ ./main Redirecting output to ‘wget-log.2’. jonny@asus:~/code$ //g++ -O2 -Wall -Wextra -Wpedantic -o main main.c #include <string> #include <stdio.h> #include <stdlib.h> int main (void) { std::string str = "timeout -k 26s 25s wget --output-document dump.html http://TajInternational.com/"; int result = system(str.c_str()); return result; } _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?51181> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/