Store command output into a variable.
I'm looking for some help in storing the output of a system command into a variable. For instance, i want to store the output of the linux command 'md5sum myfile' into a variable so that i can compare it with other variables & print to the screen them.
I have searched the board, and found a few examples, but i can't seem to get them to work. A few seem to be using the popen function.
I would be greatful if somebody could help me out.
Thank you for your time,