public inbox for [email protected]
help / color / mirror / Atom feedFrom: Ashesh Vashi <[email protected]>
To: Dave Page <[email protected]>
Cc: Surinder Kumar <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: [pgAdmin4][Patch]: Background process executor won't run(in case of Backup, restore) in Windows only
Date: Fri, 23 Sep 2016 14:12:26 +0530
Message-ID: <CAG7mmoywd0a1c-hTnokG8BAT=tz8yNCDr+dQMYfTSSGs2enZOg@mail.gmail.com> (raw)
In-Reply-To: <CA+OCxoxKz6OJgWB_wbnu4byaANjOryK0q6j77Xv1D4rkVAfDRg@mail.gmail.com>
References: <CAM5-9D_+dUN79tJoK35Vq2oXLybeBwVFPFKHmF5NPKg6HR_c3Q@mail.gmail.com>
<CA+OCxoziDJ602ijijUsVDOgP8jwHpqpKMBxXeY_9amcE_4bUOg@mail.gmail.com>
<CAM5-9D_szaiOK8Ff1D5RDLTLBviMknaOV3po5Ven_pZo7g74HA@mail.gmail.com>
<CA+OCxozFa--mMepPxFLFu2LZAi=Uspb17tcFBwkH6EL8aai2QQ@mail.gmail.com>
<CAG7mmoycf8RVvTQWyZAPcpC16xDGNShudE2-rAdodq4TTmpLEQ@mail.gmail.com>
<CA+OCxoxKz6OJgWB_wbnu4byaANjOryK0q6j77Xv1D4rkVAfDRg@mail.gmail.com>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgadmin-hackers>
On Fri, Sep 23, 2016 at 1:54 PM, Dave Page <[email protected]> wrote:
>
>
> On Fri, Sep 23, 2016 at 9:18 AM, Ashesh Vashi <
> [email protected]> wrote:
>
>> On Fri, Sep 23, 2016 at 1:47 PM, Dave Page <[email protected]> wrote:
>>
>>> On Fri, Sep 23, 2016 at 5:59 AM, Surinder Kumar
>>> <[email protected]> wrote:
>>> > Actually It doesn't broke anywhere, instead It runs successfully. On
>>> > debugging I found that it runs the subprocess.Popen() utility but it
>>> doesn't
>>> > run internally the pg_dump utitliy. On running the same command on
>>> windows
>>> > cmd prompt it works.
>>> > Then on setting parameters close_fds=False and cmd_shell=True, It
>>> works.
>>> > I ran backup in Google Chrome.
>>>
>>> It certainly runs pg_dump for me - I see the output in the monitoring
>>> dialogue, and I get a dump file at the end.
>>>
>>> I also use Chrome.
>>>
>> It may differ for different version of python.
>>
>
> Maybe. I'm using 2.7.
>
> Either way, I don't want a command window flashing up unnecessarily.
>
If we set the PYTHON INTERPRETER to run the background process.
i.e. BG_PYTHON_INTERPRETER=c:\Python27\pythonw.exe
We can avoid showing the flashing command window.
I came to this conclusion, because - I tried to hide them using certain
flags, but - it wasn't working well.
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
<http://www.enterprisedb.com/;
*http://www.linkedin.com/in/asheshvashi*
<http://www.linkedin.com/in/asheshvashi;
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
view thread (7+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: [pgAdmin4][Patch]: Background process executor won't run(in case of Backup, restore) in Windows only
In-Reply-To: <CAG7mmoywd0a1c-hTnokG8BAT=tz8yNCDr+dQMYfTSSGs2enZOg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox