how to handle output generated after execution of command/script on host unix machine?

2010-12-19 Thread Darshak Bavishi
() #print stdout.readlines() Issue is files are generating but remaining blank pls pls help me out of this -- BR Darshak Bavishi -- BR Darshak Bavishi -- http://mail.python.org/mailman/listinfo/python-list

how tohandling output generated after execution of command/script on host unix machine?

2010-12-14 Thread Darshak Bavishi
() #print stdout.readlines() Issue is files are generating but remaining blank pls pls help me out of this -- BR Darshak Bavishi -- http://mail.python.org/mailman/listinfo/python-list

AttributeError while running ssh (from windows) paramiko need help

2010-12-13 Thread Darshak Bavishi
1)* * File "C:\Python26\lib\idlelib\rpc.py", line 560, in __getattr__* *raise AttributeError, name* *AttributeError: read* * * * * EOF * * *Traceback (most recent call last):* * File "C:\Python26\paramiko-1.7.4\demos\demo_simple.py", line 101, in * *sys.exit(1)* *SystemExit: 1* * * *can you tell me what is use of Hostkey and how to overcome this issue?!* -- BR Darshak Bavishi -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there any way to SSH from Python ?!

2010-12-13 Thread Darshak Bavishi
at 5:04 PM, Felipe Vinturini < felipe.vintur...@gmail.com> wrote: > > > On Mon, Dec 13, 2010 at 3:11 AM, Darshak Bavishi < > bavishi.dars...@gmail.com> wrote: > >> >> i am trying from last week but no luck !! >> >> one thing only found that pexpect

How to install pycrypto mode in windows ?!

2010-12-13 Thread Darshak Bavishi
Key\__init__.py -> build\lib.win32-2.6\Crypto\PublicKey running build_ext building 'Crypto.Hash.MD2' extension error: Unable to find vcvarsall.bat can u suggest any source to get pycrypto to avoid such events?! -- BR Darshak Bavishi -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there any way to SSH from Python ?!

2010-12-12 Thread Darshak Bavishi
i am trying from last week but no luck !! one thing only found that pexpect it not useful in windows pls help out of this On Mon, Dec 13, 2010 at 10:39 AM, Chris Rebert wrote: > On Sun, Dec 12, 2010 at 9:03 PM, Darshak Bavishi > wrote: > > Hi Experts, > > I need to know tha

Is there any way to SSH from Python ?!

2010-12-12 Thread Darshak Bavishi
; + "\n") print "5" tn.write("Cd /Office-Parameters/Mobility-Config-Parameters/Subscriber-Query-by-IMSI-MSISDN-or-IMEI" + "\n") print "6" tn.write("\n") tn.write("\n") tn.write("vlrsubquery msisdn=***" + "\n") tn.write("\n") tn.write("exit" + "\n") print tn.read_all() tn.close() -- BR Darshak Bavishi -- http://mail.python.org/mailman/listinfo/python-list

how to read o/p of telenet (python) ?!

2010-12-11 Thread Darshak Bavishi
;\n") print "5" tn.write("Cd /Office-Parameters/" + "\n") print "6" tn.write("\n") tn.write("\n") tn.write("vlrsubquery msisdn=***" + "\n") tn.write("\n") print tn.read_all() tn.write("exit" + "\n") tn.close() -- BR Darshak Bavishi -- http://mail.python.org/mailman/listinfo/python-list

stuck with Pexpect script need help!!

2010-12-10 Thread Darshak Bavishi
ded for UNIX-like operating systems. >>> RESTART >>> Traceback (most recent call last): File "C:\Python26\ssh_session.py", line 7, in from pexpect import * ImportError: No module named pexpect >>> * Can we use pexpect from win