Alternative to | more to display error results page by page
Posted
by
Lane
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Lane
Published on 2012-09-17T18:03:14Z
Indexed on
2012/09/18
3:52 UTC
Read the original article
Hit count: 248
command-line
The command
psql -d template_postgis2 -f /usr/share/postgresql/9.1/contrib/postgis-2.1/postgis.sql
returns a list of errors that is too long to be displayed by scrolling up to the beginning of the error.
I tried the same command with "| more
" and "| less
" added up at the end of the command but it does not display the message page by page as it should.
I also tried to put the output in a file with "> file.txt
" but I do not get in this new file what is displayed on the screen!!
I don't understand why. I guess i can't do this with a psql command?? Is there any other way to get all the error message?
Thanks for your help!
© Ask Ubuntu or respective owner