I need to append a variable string, via SSHPASS (bash script), to an existing file placed in the Remote Machine.
I tried
echo "$test" | sshpass -p $pass $host 'cat >> /remote/full/path/log/report.log'
sshpass -p $pass $host "echo $test" >> /remote/full/path/log/report.log
Nothing Works
I figured out: