#10762 read complete answer from LyX server and echo it

This commit is contained in:
Stephan Witt 2017-09-14 08:57:52 +02:00
parent 4939741a73
commit 81d70b41a1

View File

@ -86,7 +86,9 @@ if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then
MAC_LYXPIPE_CONTENTS="LYXCMD:macdvix:server-goto-file-row:$file $2"
# echo "$MAC_LYXPIPE_CONTENTS"
echo "$MAC_LYXPIPE_CONTENTS" > "${LYXPIPE}".in || { echo "Cannot write to lyxpipe." ; exit 2 ; }
read < "${LYXPIPE}".out || { echo "Cannot read from lyxpipe." ; exit 2 ; }
while read line < "${LYXPIPE}".out ; do
echo LyX said: $line
done || { echo "Cannot read from lyxpipe." ; exit 2 ; }
else
echo "Our best guess sets lyxpipe as ${LYXPIPE}"
echo "But the lyxpipe could not be found."