rlfe with sqlplus in order to have a better sql cli:
rlfe -h /home/`whoami`/.sqlhistory $SQLPLUS $conn | tee -a $OUTFILE
But I had this problem within an lxc container:
~$ rlfe ptypair: could not open master pty: No such file or directory
The problem was a bad permission setting on /dev/ptmx. These permissions were set at boot so just change them on time wasn’t enough.
This init script resolve the issue:
To add it on boot:
~$ update-rc.d fix-ptmx-perm defaults