Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #15994
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <Nikunj.Badjatya@emc.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.04; 'pypi': 0.04; 'subject:Python': 0.05; 'python': 0.08; 'scripts': 0.09; '21,': 0.09; 'machines.': 0.09; 'throw': 0.09; 'am,': 0.12; 'message-----': 0.12; 'installer.': 0.16; 'it..': 0.16; 'non- standard': 0.16; 'sane': 0.16; 'temp': 0.16; 'vmware': 0.16; 'wix': 0.16; '\xa0as': 0.16; '\xa0for': 0.16; '\xa0using': 0.16; 'mon,': 0.16; 'wrote:': 0.18; 'written': 0.20; 'suggest': 0.20; 'trying': 0.21; 'to:2**1': 0.21; 'bangalore': 0.21; 'mechanism': 0.21; 'header:In-Reply-To:1': 0.22; 'received:169.254.1': 0.23; 'sunday,': 0.23; 'command': 0.24; 'creating': 0.25; 'windows': 0.26; 'all,': 0.28; 'url:mailman': 0.28; 'script': 0.28; 'module.': 0.29; 'nov': 0.29; 'environment': 0.30; 'environment.': 0.30; 'installer': 0.30; 'cc:': 0.31; 'thanks': 0.31; 'anyone': 0.31; 'shared': 0.31; 'does': 0.32; 'yet': 0.32; 'url:listinfo': 0.32; 'implement': 0.32; 'there': 0.33; 'to:addr:python-list': 0.34; 'it.': 0.34; 'subject:': 0.34; 'received:169': 0.34; 'received:169.254': 0.34; 'too': 0.34; 'file.': 0.34; 'anything': 0.34; '17,': 0.34; 'light': 0.35; 'rest': 0.35; 'to:no real name:2**1': 0.35; 'are:': 0.35; 'test': 0.35; 'install': 0.35; 'url:python': 0.36; 'file': 0.36; 'sent:': 0.36; 'uses': 0.36; 'executing': 0.37; 'skip:p 50': 0.37; 'thread': 0.37; 'thursday,': 0.37; 'but': 0.37; 'entry': 0.37; 'received:128': 0.37; 'using': 0.38; 'monday,': 0.38; 'some': 0.38; 'from:': 0.39; 'url:org': 0.39; 'else': 0.39; 'why': 0.39; 'to:addr:python.org': 0.40; '2011': 0.61; 'your': 0.61; 'from:no real name:2**0': 0.63; 'world.': 0.64; 'alternative': 0.65; 'taking': 0.66; 'here.': 0.66; 'taylor': 0.67; 'dealing': 0.69; 'completion': 0.82; '1.\xa0\xa0\xa0\xa0\xa0\xa0': 0.84; '12:01': 0.84; '2.\xa0\xa0\xa0\xa0\xa0\xa0': 0.84 |
| From | <Nikunj.Badjatya@emc.com> |
| To | <alec.taylor6@gmail.com>, <python-list@python.org> |
| Date | Mon, 21 Nov 2011 05:44:17 -0500 |
| Subject | RE: ProgressBar - Python and Powershell |
| Thread-Topic | ProgressBar - Python and Powershell |
| Thread-Index | AcyoFvm20HX+9hSDR72FyAuhDKHdNAAIuo7Q |
| References | <599CEBACD49B4144A61212D837EE3C0F144604D184@MX34A.corp.emc.com> <599CEBACD49B4144A61212D837EE3C0F144604D352@MX34A.corp.emc.com> <CAO+9iGde9_bUDPOVDYGOErmGK43s32KCs=dQWKp+D7S2pazBjA@mail.gmail.com> <599CEBACD49B4144A61212D837EE3C0F144604D355@MX34A.corp.emc.com> <CAO+9iGej-H+2aiay4X1mnMibdGZiMBMe6_70g=OhLbDwinmpUQ@mail.gmail.com> |
| In-Reply-To | <CAO+9iGej-H+2aiay4X1mnMibdGZiMBMe6_70g=OhLbDwinmpUQ@mail.gmail.com> |
| Accept-Language | en-US |
| Content-Language | en-US |
| X-MS-Has-Attach | |
| X-MS-TNEF-Correlator | |
| acceptlanguage | en-US |
| Content-Type | text/plain; charset="iso-8859-1" |
| Content-Transfer-Encoding | quoted-printable |
| MIME-Version | 1.0 |
| X-EMM-MHVC | 1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2892.1321872288.27778.python-list@python.org> (permalink) |
| Lines | 145 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1321872288 news.xs4all.nl 6893 [2001:888:2000:d::a6]:56824 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:15994 |
Show key headers only | View raw
Yes I am executing powershell commands into virtual machines. Will have a look at WiX. But please, Answer my questions: >> My questions are: >> >> 1. Can I have a better shared mechanism between python and >> powershell.? As I am using a file here. Reading + writing in python and >> writing only in powershell. ! >> >> 2. Does this thread mechanism work.? I am yet to implement and test >> it.! :P What can be the possible shortfalls.? Thanks Nikunj -----Original Message----- From: Alec Taylor [mailto:alec.taylor6@gmail.com] Sent: Monday, November 21, 2011 11:59 AM To: Badjatya, Nikunj Cc: python-list@python.org Subject: Re: ProgressBar - Python and Powershell So you're executing Powershell commands into Virtual Machines? Add this into the installer (probably WiX is your best bet) On Mon, Nov 21, 2011 at 3:40 AM, <Nikunj.Badjatya@emc.com> wrote: > Thanks for reply. > Python and Powershell are required because the installer would deal in virtual machines ( VMware environment ). > Some prechecks and postconfig are required in both VMware and Windows environment. For dealing with VMware environment powershell has the best bonding. For windows I am using Python. > > I am new to this field and do not know if there is an alternative available.! Can you please suggest an alternative to Powershell in VM environment. ? > > The current look of the installer is completely command line based. > > > -----Original Message----- > From: Alec Taylor [mailto:alec.taylor6@gmail.com] > Sent: Sunday, November 20, 2011 7:22 PM > To: Badjatya, Nikunj > Cc: python-list@python.org > Subject: Re: ProgressBar - Python and Powershell > > Why are you writing an installer in Python and Powershell? > > Just write an installer in WiX, NSIS or Inno like the rest of the sane world. > > Alternatively take a look at MakeMSI or the script python uses to > generate there .MSI. > > Anything else is WAY too non-standard to consider. > > On Mon, Nov 21, 2011 at 12:01 AM, <Nikunj.Badjatya@emc.com> wrote: >> Can anyone throw some light on this please ! ? >> >> >> >> >> >> From: python-list-bounces+nikunj.badjatya=emc.com@python.org >> [mailto:python-list-bounces+nikunj.badjatya=emc.com@python.org] On Behalf Of >> Nikunj.Badjatya@emc.com >> Sent: Thursday, November 17, 2011 4:10 PM >> To: python-list@python.org >> Subject: ProgressBar - Python and Powershell >> >> >> >> Hi All, >> >> >> >> I am using Python 2.7, windows Env. >> >> I have an Installer written in Python(45%) and Powershell(55%) which is used >> to install Virtual Machines at specific locations. It is single threaded. >> >> I am trying to implement a ProgressBar for this installer. So that the user >> will come to know the progress of the installation. >> >> I am using pypi progressbar module. >> >> The top script is in python which inturns calls powershell scripts using >> subprocess.call() and proceeds with the installation. >> >> >> >> I am taking a shared file between python and powershell, so that diff >> functions can update their %age completion level in to the file. Ex. Func1() >> updates it to 5%, func2() will add its own 5% to it.. and so on. >> >> At the start of the (main.py) script I am creating a thread whose sole >> purpose would be to keep "READ" a temp file for a new entry in it. >> >> Based on this entry I can have my thread update the progressbar on the >> console. >> >> >> >> My questions are: >> >> 1. Can I have a better shared mechanism between python and >> powershell.? As I am using a file here. Reading + writing in python and >> writing only in powershell. ! >> >> 2. Does this thread mechanism work.? I am yet to implement and test >> it.! :P What can be the possible shortfalls.? >> >> >> >> >> Thanks >> >> >> >> Nikunj >> >> Bangalore - India >> >> >> >> >> -- >> http://mail.python.org/mailman/listinfo/python-list >> >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
RE: ProgressBar - Python and Powershell <Nikunj.Badjatya@emc.com> - 2011-11-21 05:44 -0500
csiph-web