There is a script that I have been tasked to run and modify. However, I am having quite difficulty in understanding the signifigance of return codes, and it would make my life easier if I can redirect the system console output to file.
In Windows, I tried going to run, typing in "cmd" to run the following command:
C:\[name of scipt.exe] >> filetooutput.txt
But the program just hangs.
Here is a snippit of code in the script:
result=system(outputx);
outFile << "For IP address" << abc << " We have attempted to install xyz and the result is " << result << endl;
outFile.close();
outputx is carefully assembled string to be sent to system console.
Once again, looking forward to your guidance.