Search Postgresql Archives

Re: Suppress output from function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ron St-Pierre <rstpierre@syscor.com> writes:
> Whenever I run certain functions, such as the example below, the output 
> is either displayed in the terminal or emailed to be by cron, depending 
> on how I run it.  Is there any way I can re-write the function, set some 
> psql parameters, etc, to ensure that the results aren't displayed?

Add "> /dev/null" to the psql invocation in the cron script.  You might
also want to add "-q" to suppress uninteresting comments on stderr,
while still hearing about any actual errors (in other words, I wouldn't
also route stderr to /dev/null...)

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux