quiet restore

View: New views
2 Messages — Rating Filter:   Alert me  

quiet restore

by Keith Turner-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 
I am writing a command line script that restores a database (not created by me) using the command
 
psql -U USER DATABASE < RESTORE_FILENAME
 
This works fine, but it outputs to the command line window. Is there a way to suppress this?
 
Keith
 
 

Re: quiet restore

by Harold A. Giménez Ch. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You could simply pipe it to /dev/null


psql -U USER DATABASE < RESTORE_FILENAME > /dev/null




On Fri, Oct 3, 2008 at 1:24 PM, Keith Turner <kturner@...> wrote:
Hi,
 
I am writing a command line script that restores a database (not created by me) using the command
 
psql -U USER DATABASE < RESTORE_FILENAME
 
This works fine, but it outputs to the command line window. Is there a way to suppress this?
 
Keith
 
 

LightInTheBox - Buy quality products at wholesale price!