title: How to change system call in gdb or linux terminal
body: <pre><code>read(fileno(stdin), variable, 1024);
  if(strcmp(variable,variable 2 ) == 0) {
      printf("xyz" :)\n\n~$ ");
      fflush(stdout);
      system("/bin/bash -p");
  </code></pre>
  
  <p>Hey Guys,</p>
  
  <p>So I have this C program which contains the following piece of code. So I wan to know if there is any way to change the system("/bin/bash -p") to system("xyz") while executing the program or with gdb.</p>