The error message is shown because Octave is expecting PAGER to be set to a program that can be run and given the text as 'stdin'. The /dev/null
file is obviously not a program, and it does not have the "executable" permission bot; the latter is what causes the permission error.
Try /usr/bin/cat
or /usr/bin/true
instead.