Re: pgAdmin Job fires wrong .bat file

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Jason Sanford <jasonsanford(at)gmail(dot)com>
Cc: pgadmin-support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: pgAdmin Job fires wrong .bat file
Date: 2009-12-12 09:05:31
Message-ID: 937d27e10912120105s70d8d858ub190a0c45c6f79f5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Fri, Dec 11, 2009 at 9:51 PM, Jason Sanford <jasonsanford(at)gmail(dot)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

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Ahmad Salehan Sulaiman 2009-12-14 17:29:42 Fault tolerance
Previous Message Jason Sanford 2009-12-11 21:51:03 pgAdmin Job fires wrong .bat file