Re: pgAdmin Job fires wrong .bat file

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: pgAdmin Job fires wrong .bat file
Дата
Msg-id 937d27e10912120105s70d8d858ub190a0c45c6f79f5@mail.gmail.com
обсуждение исходный текст
Ответ на pgAdmin Job fires wrong .bat file  (Jason Sanford <jasonsanford@gmail.com>)
Список pgadmin-support
On Fri, Dec 11, 2009 at 9:51 PM, Jason Sanford <jasonsanford@gmail.com> wrote:
> I just created a job with pgAdmin.  One of the steps is to kick of a .bat
> file at C:\PostgreSQL\PG_backups.bat.  I couldn't figure out why this wasn't
> being triggered so I turned the logging to debug on my pgAgent Service.
> Instead of looking for my .bat file at C:\PostgreSQL\PG_backups.bat it looks
> for it at "C:\DOCUME~1\ADMINI~1.UC\LOCALS~1\Temp\pgaCB.tmp\1_1.bat". Anyone
> have any clue why it would be looking in a temp directory?

The command that you tell it to run gets written to a temp file which
is then executed. So if the job step contains:

@echo off
C:\PostgreSQL\PG_backups.bat

Then that is written to the temp file and executed.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


В списке pgadmin-support по дате отправления:

Предыдущее
От: Jason Sanford
Дата:
Сообщение: pgAdmin Job fires wrong .bat file
Следующее
От: "Ahmad Salehan Sulaiman"
Дата:
Сообщение: Fault tolerance