Jose Velasquez

Generation

generate functionSun, 18 Jun 2023

ejecutar pcp_recovery_node -h 192.168.1.48 -p 9898 -U pgpool -n 1 y colocarle la contraseña en el la terminal

#include <stdio.h> #include <stdlib.h> #include <iostream> #include <string> using namespace std; int main(int argc, char const *argv[]) { string host; string port; string user; string node; string password; cout << "host: "; cin >> host; cout << "port: "; cin >> port; cout << "user: "; cin >> user; cout << "node: "; cin >> node; cout << "password: "; cin >> password; string command = "PGPASSWORD='" + password + "' pcp_recovery_node -h " + host + " -p " + port + " -U " + user + " -n " + node; system(command.c_str()); return 0; }

Questions about programming?Chat with your personal AI assistant