cd "/Library/Application Support/Final Cut Server/Final Cut Server.bundle/Contents/PostgreSQL/lib" [this is all one line] for x in `ls`; do ln -s $x /usr/lib; done
cd .. bin/psql -h localhost -p 5433 -d px -U postgres
update pxeventresponse set eventstatusid=3; \q
cd "/Library/Application Support/Final Cut Server/Final Cut Server.bundle/Contents/PostgreSQL/" [all on one line] bin/psql -h localhost -p 5433 -d px -U postgres delete from pxeventresponse; \q