Re: pg_dump why no indicator of completion

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

 



On 5/1/23 22:21, Tim wrote:
 > After reading the responses in this thread I've adjusted it to capture the exit status

Just so I'm not a complete troll, heres your example which also appends a success/fail message :)

nohup $(pg_dump ${connection_details} > something.log 2>&1 && echo "pgdump succeded" >> something.log || echo "pgdump failed" something.log) &

Out of curiosity, why this:
    > something.log 2>&1
instead of that?
    &> something.log

Yes, "&>" is a bashism, but so what?

--
Born in Arizona, moved to Babylonia.

[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux