inside the container
continuously outputs the desired (filtered) log messages to the terminal. but on the host
only outputs blank lines for each line the script inside the container prints.
how do i escape the quotes inside the bash cmd in the host?
Code:
$ bash /home/ubuntu/scripts/logsigmonitor.sh 1 | while read LOGLINE; do echo "${LOGLINE}"; done
continuously outputs the desired (filtered) log messages to the terminal. but on the host
Code:
/usr/sbin/pct exec 107 -- bash -c "bash /home/ubuntu/scripts/logsigmonitor.sh 1 | while read LOGLINE; do echo \"${LOGLINE}\"; done"
only outputs blank lines for each line the script inside the container prints.
how do i escape the quotes inside the bash cmd in the host?