Montfort
04-02-02, 16:30
| Hi tried to schedule a cron job(on solaris) to run a scripts(as postgres user) which in turn runs a query to the postgresql database and stores the results into a text file.But I get errors from the cron demon that there is no directory.When I tried to run the cron job as root.The error I get is psql not found. the script I used is psql -p 5432 -A -F ',' -c 'select * from test' -d test -t -o /cronjob/test.txt Any suggestions? Thanks Montfort |