From: | Mehmet Emin KARAKAŞ <emin100(at)gmail(dot)com> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | PgAgent Patch |
Date: | 2015-03-03 12:00:27 |
Message-ID: | CANQrdXDg+q7b4CC-k6B1WdNjNvs7Gy06V9i0SPxM=tqFO7QOLg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi,
If batch cron is failed, pgagent doesn't receive error messages. We fix it.
We canalized the stderr to stdout. This patch batch cron receive error
massages from nix machine. Git Diff Message and job.cpp file is attached.
Thanks.
--
MEHMET EMİN KARAKAŞ
Postgresql Global Username: emin100
diff --git a/job.cpp b/job.cpp
index 00334ab..694be22 100644
--- a/job.cpp
+++ b/job.cpp
@@ -273,8 +273,11 @@ int Job::Execute()
// The *nix way.
FILE *fp_script;
char buf[4098];
+
+ wxString wxSt = wxT("");
+ wxSt.Printf( _("%s 2>&1"), filename.c_str());
- fp_script =
popen(filename.mb_str(wxConvUTF8), "r");
+ fp_script = popen(wxSt.mb_str(wxConvUTF8) ,
"r");
if (!fp_script)
{
output.Printf(_("Couldn't execute
script: %s, errno = %d"), filename.c_str(), errno);
Attachment | Content-Type | Size |
---|---|---|
job.cpp | text/x-c++src | 9.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2015-03-03 13:01:05 | Re: Patch : PGPASSFILE fix |
Previous Message | Dave Page | 2015-03-03 11:11:41 | pgAdmin 4 commit: Update wcDocker to enable properly translation of the |