Howdy All,
I am trying to use paramiko to automate logging in to remote unix machines and
executing some commands there.
When I normally do ssh from my linux machine (with Python 2.6) to this machine
a different '>' prompt comes. It's a device specific custom prompt.
After I run 'enable' command
Howdy,
Py ver - 3.2, Windows-XP . Logged in as user with admin privileges.
>From my main python program, I am running powershell program using
>subprocess.Popen().
Now I have created a signal_handler() function in main python script which will
handle CTRL-C ( This works fine ).
Now when I pu
Any ideas anyone ?
-Original Message-
From: bangpypers-bounces+nikunj.badjatya=emc@python.org
[mailto:bangpypers-bounces+nikunj.badjatya=emc@python.org] On Behalf Of
nikunj.badja...@emc.com
Sent: Tuesday, February 21, 2012 3:00 PM
To: mandarv...@gmail.com; bangpypers
No I am not printing anything.
From: Mandar Vaze / मंदार वझे [mailto:mandarv...@gmail.com]
Sent: Tuesday, February 21, 2012 2:55 PM
To: Badjatya, Nikunj
Subject: Re: [BangPypers] Using subprocess - Extra '0' on the console
It is possible that this "zero" is return value i.e. success indicator
Ar
Hi,
I am using subprocess module to run a powershell script with necessary
arguments.
I also want to wait for this process to be over. The following statements works
fine functionality wise.
Program.py:-
{{{
Ret = Popen([powershellpath, argslist])
Status = Ret.communicate()
}}}
Previously I was
Hi,
I want to check the availability of the server ( in the sense ) by continuously
pinging it in intervals of 30 seconds.
I am using Python2.7 on windows platform.
I wrote the following snippet. It works fine but it opens a windows cmd prompt
everytime it is reaching subprocess.call()
{{{
impor
Oops.. take
esxname = ip
From: Badjatya, Nikunj
Sent: Thursday, December 29, 2011 5:24 PM
To: Bangalore Python Users Group - India
Subject: Background ping - check for server availability
Hi,
I want to check the availability of the server ( in the sense ) by continuously
pinging it in intervals
Hi All,
Thanks for the info.
I had Python27 and Python32 both installed togethar.
In Windows the PATH env variable, I had set Python27 exe and lib path.
But When I do
C:\> Python [PressEnter]
I get 2.7
But when I run
C:\> script.py [PressEnter]
The script is running with Python3.2 , thts weird
Also, I have not set any interpreter in the shebang line to use.
Anyways,
Thanks All.
-Original Message-
From: bangpypers-bounces+nikunj.badjatya=emc@python.org
[mailto:bangpypers-bounces+nikunj.badjatya=emc@python.org] On Behalf Of
Noufal Ibrahim
Sent: Friday, November 25
Hi All,
Please look at the snippet below.
When I am running my module its giving me following error.
Using : Python 2.7, windows Env.
{{{
# User defined modules
try:
from scripts import precheck
from scripts import input
from scripts import validate
from scripts import logsetup
Thanks for the useful info Noufal.
-Original Message-
From: bangpypers-bounces+nikunj.badjatya=emc@python.org
[mailto:bangpypers-bounces+nikunj.badjatya=emc@python.org] On Behalf Of
Noufal Ibrahim
Sent: Monday, November 21, 2011 4:32 PM
To: Bangalore Python Users Group - India
-
From: bangpypers-bounces+nikunj.badjatya=emc@python.org
[mailto:bangpypers-bounces+nikunj.badjatya=emc@python.org] On Behalf Of
Philippe May
Sent: Sunday, November 20, 2011 7:25 PM
To: bangpypers@python.org
Subject: Re: [BangPypers] "continue" in "try..except"
Re
Hi Navin,
Thanks for replying.
Yes your understanding is correct.
Are you 100% certain that this mechanism is not available in Python.?
I think this is very generic usecase of exception handling. !?
Thanks
Nikunj
-Original Message-
From: bangpypers-bounces+nikunj.badjatya=emc
Hi ,
Please look at the below code snippet:
{{{
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print("\nKeyboard interrupt from the user !!")
ret = input("Want to abort the installation ?[y/n]: ")
while True:
if ret == "y":
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 p
15 matches
Mail list logo