> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dave Page > Sent: 30 June 2006 08:57 > To: [EMAIL PROTECTED]; pgadmin-support@postgresql.org > Subject: Re: [pgadmin-support] pgagent status always successful > > > Yes, it's a bug. Please give the attached patch to > xtra/pgagent/job.cpp > a whirl and see if it helps. You should get a result of -1 if there is > an error executing the script, otherwise whatever the return value of > the script is. > > Note that on Windows there is currently no way to get the > script return > value. > > Please let me know if it works as expected.
Sorry - just realised the patch I sent was against the current dev code, so if you're running 1.4.x it won't apply. In that case, please use the attached version. Regards, Dave.
pgagent-1.4-retcode.diff
Description: pgagent-1.4-retcode.diff
---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend