When I run a shell script in bash, I push everything to a file as follows:
./script.sh >results.txt
Some of the commands in my script output to the terminal, rather than the text file.
For example, the line cmd "ssh -V" outputs to the terminal.
What can I do to get the results in the results.txt file?