Re: >>>>> pg_dump in crontab
От | Joseph Shraibman |
---|---|
Тема | Re: >>>>> pg_dump in crontab |
Дата | |
Msg-id | 3A662593.4E789245@selectacast.net обсуждение исходный текст |
Ответ на | Re: >>>>> pg_dump in crontab ("Oliver Elphick" <olly@lfix.co.uk>) |
Список | pgsql-general |
Or do what I do 30 23 * * * ~/.bashrc ; /usr/local/pgsql/bin/pg_dump test > test.out assuming you use bash, of course. Oliver Elphick wrote: > > Iwan Tutuka Pambudi wrote: > >$ crontab -l > >30 23 * * * pg_dump test > test.out > > > >I got an error massage > >/bin/sh: pg_dump: command not found > > > >$ which pg_dump > >/usr/local/pgsql/bin/pg_dump > > cron has a very limited search list for executables; you should set PATH > in the command or use the full pathname for pg_dump: > > 30 23 * * * /usr/local/pgsql/bin/pg_dump test > test.out > > or > > 30 23 * * * PATH=/usr/local/pgsql/bin:$PATH pg_dump test > test.out > > -- > Oliver Elphick Oliver.Elphick@lfix.co.uk > Isle of Wight http://www.lfix.co.uk/oliver > PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 > GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C > ======================================== > "And, behold, I come quickly; and my reward is with me, > to give every man according as his work shall be." > Revelation 22:12 -- Joseph Shraibman jks@selectacast.net Increase signal to noise ratio. http://www.targabot.com
В списке pgsql-general по дате отправления: