Re: can't run pg_dump in sh script using crontab - Mailing list pgsql-admin

From Stefan Huber
Subject Re: can't run pg_dump in sh script using crontab
Date
Msg-id 5.0.2.1.0.20010210152757.009fbcf0@pop.crosswinds.net
Whole thread Raw
In response to can't run pg_dump in sh script using crontab  ("Kogotkov, Vyacheslav" <Vyacheslav.Kogotkov@artificial-life.com>)
List pgsql-admin
>    But I get nothing if I run it using cron.
>    I think, may be oracle pg_dump can't find database
>"dbname" when it runs by crontab ?


Ist your crontab a systemwide one? (ie: /etc/crontab ?) this one's normally
run as root, but you may specify a special user. does your script run as
root, too? So you might ewant to un your script as
* * * * * su - oracle -c '/path/to/script/yourscript'

Stefan


pgsql-admin by date:

Previous
From: "Kogotkov, Vyacheslav"
Date:
Subject: can't run pg_dump in sh script using crontab
Next
From: "Kogotkov, Vyacheslav"
Date:
Subject: RE: ???solution??? --> can't run pg_dump in sh script usi ng crontab