<Aniko.Badzong@xxxxxxxxxxxx> writes: > [test] su - postgres -c "echo \"copy test from '/data/log/bla';"\" | > psql logdb" > Unmatched ". > somehow does not want to work. You've got too many quote marks. su - postgres -c "echo \"copy test from '/data/log/bla';\" | psql logdb" regards, tom lane