Advertisement
BenTibnam

Continuous wget

Sep 5th, 2023
978
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | Software | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3.  
  4. int main(void)
  5. {
  6.         printf ("Press ctrl-c to cancel. Enter the link you want to run wget on.\n");
  7.         std::string link;
  8.         while(1) {
  9.                 std::cin >> link;
  10.                 std::string dl_command = "wget " + link;
  11.                 const char *run = dl_command.c_str();
  12.                 system(run);
  13.         }
  14.  
  15.         return 0;
  16. }
Tags: wget
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement