that is what i have now, and $ret_val doesn't take the output. the system call's input comes from the keyboard and executes it on the remote computer. the code i have is:
i also tried writing the system call's output to a text file and print it on the remote computer like this:
or without. the error message is: