Re: [BangPypers] Announcing the 3rd keynote speaker for PyCon India2014!

2014-06-27 Thread davidsnt
Hi Srini, Please read the mail subject and keep your discussions off this thread. --David On Thu, Jun 26, 2014 at 4:06 PM, Srinivasa Rao wrote: > Hi Chandru > > I am looking ? do you have any opening in your company ? > > Thanks & Regards > Srini > > > On Thu, Jun 26, 2014 at 3:10 PM, Chandru

Re: [BangPypers] Question on FTP

2013-08-23 Thread davidsnt
good practice? Please let me know. --David On Fri, Aug 23, 2013 at 4:20 PM, davidsnt wrote: > Yeah ftplib is a comprehensive library for all the ftp operations, but to > get hands on it and make stuffs in the way I wanted took a little time, > still I have some question on strobina

Re: [BangPypers] Question on FTP

2013-08-23 Thread davidsnt
t ftplib library > with retrbinary and storbinary methods you could do it. > > did you got struck? share the snippets that would help to resolve... > http://googleitfor.me/?q=ftp+file+transfer+python > > > 2013/8/20 davidsnt > > > Can some one please help me to find the be

[BangPypers] Question on FTP

2013-08-20 Thread davidsnt
Can some one please help me to find the best way to do a file upload and file download to a FTP server in python. --David ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] [Novice] Question on File seek and tell methods

2013-06-17 Thread davidsnt
Thank you all for your help, I managed to get what I wanted from the file with all your help, but still I have my question left opened, cant we get this done with seek and tell methods, agree that we have a better way, but want to know the possibilities of getting done with seek and tell. Read th

Re: [BangPypers] [Commercial] Advanced Python Course

2013-05-20 Thread davidsnt
Hi Anand, Will you be having one more session on the same topic some time mid next month? This is a little short notice, I might miss out this time. Regards, Davidsanthosh L On Mon, May 20, 2013 at 4:54 PM, Anand Chitipothu wrote: > Hi, > > I'm conducting a three-day workshop on Advanced Pytho

Re: [BangPypers] RPM Build Help

2013-04-24 Thread davidsnt
Thank you :) Regards, Davidsanthosh L On Wed, Apr 24, 2013 at 9:20 AM, Sreekandh Balakrishnan wrote: > On Wednesday, 24 April 2013 at 1:09, davidsnt wrote: > > Hi, > > > > Can you help to find out the module that will help me to build RPM's and > > manipul

[BangPypers] RPM Build Help

2013-04-23 Thread davidsnt
Hi, Can you help to find out the module that will help me to build RPM's and manipulate with RPM database. I followed http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch-rpm-programming-python.html but unable to find rpm or python-rpm modules. pip search rpm jus

[BangPypers] Reading log file using seek and tell

2013-03-08 Thread davidsnt
Hello, How to read log files in python, On the first run I need to read all the lines from the log, process it and get the position of the last read line and from the next run I have to read from the last read line and process all the lines after it and similarly. Can you please help me with some

Re: [BangPypers] Question on Pattern Matching and Regular Expression

2013-01-07 Thread davidsnt
No this file changes very often, like once in 5 minutes and the values are updated, also there is no way I can move it to a database. Regards, Davidsanthosh L On Mon, Jan 7, 2013 at 4:55 PM, Amit Sethi wrote: > On Mon, Jan 7, 2013 at 3:52 PM, davidsnt wrote: > > Gora, > > >

Re: [BangPypers] Question on Pattern Matching and Regular Expression

2013-01-07 Thread davidsnt
Gora, Can you help me with few links that you have handy to which I can refer to build a parser instead of RE Regards, Davidsanthosh L On Mon, Jan 7, 2013 at 3:38 PM, Gora Mohanty wrote: > On 7 January 2013 15:06, davidsnt wrote: > > Bangpypers, > > > > Having a little

Re: [BangPypers] Question on Pattern Matching and Regular Expression

2013-01-07 Thread davidsnt
07 January 2013 03:06 PM, davidsnt wrote: > >> Bangpypers, >> >> Having a little trouble in parsing a file of 702 line appox, >> >> the file is in the format >> [...snip...] >> > > > Could you s

[BangPypers] Question on Pattern Matching and Regular Expression

2013-01-07 Thread davidsnt
Bangpypers, Having a little trouble in parsing a file of 702 line appox, the file is in the format # # # [Space] [ Few lines of information about the title ] [Space] # # # [Space] [ Few lines of information about the title ] I want to read this file block by block, the need is build a d

Re: [BangPypers] Executing Commands using sudo

2012-11-15 Thread davidsnt
wrote: > On Thu, Nov 15, 2012 at 5:19 PM, davidsnt wrote: > > > Hello Team, > > > > I have a bunch of servers where I have to login as user1 and then sudo as > > super user and again change to user2 and execute a bunch of commands, can > > you guys help with any th

[BangPypers] Executing Commands using sudo

2012-11-15 Thread davidsnt
Hello Team, I have a bunch of servers where I have to login as user1 and then sudo as super user and again change to user2 and execute a bunch of commands, can you guys help with any thought how can I get this done in python. I tried doing it with expect but couldnt get it right. Steps 1. Login

Re: [BangPypers] Multilevel SSH in Python (davidsnt)

2012-10-17 Thread davidsnt
Great post, really a wonderful tip. Thank you. Davidsanthosh L On Wed, Oct 17, 2012 at 7:08 PM, Philippe May wrote: > Noufal's suggestion is great (as usual). > > Twisted might be a valid alternative as it give access to the full > protocol stacks and lets you plug in what you need in pure pyth

Re: [BangPypers] Multilevel SSH in Python

2012-10-16 Thread davidsnt
Looks fabric will be of a major help. Thank you all. Regards, Davidsanthosh L On Tue, Oct 16, 2012 at 5:34 PM, Noufal Ibrahim wrote: > davidsnt writes: > > > Yeah agreed, but with proxycommand and nc I get a very little control > over > > the session, I need a connecti

Re: [BangPypers] Multilevel SSH in Python

2012-10-16 Thread davidsnt
#x27;) client.close() Thanks, David On Tue, Oct 16, 2012 at 5:16 PM, Bibhas Ch Debnath wrote: > Something using Paramiko[1] maybe? (I've never tried.) > > [1]: https://github.com/paramiko/paramiko/ > > > Bibhas > http://bibhas.in > > > > On 16 October 20

Re: [BangPypers] Multilevel SSH in Python

2012-10-16 Thread davidsnt
Yeah agreed, but with proxycommand and nc I get a very little control over the session, I need a connection object where I can create multiple connections and execute a large set of commands. Thank You, Davidsanthosh L On Tue, Oct 16, 2012 at 5:11 PM, Noufal Ibrahim wrote: > davidsnt wri

Re: [BangPypers] Multilevel SSH in Python

2012-10-16 Thread davidsnt
: > davidsnt writes: > > > Hello Team. > > > > I need some help in building a multilevel ssh program in Python. > > > > My requirement is that I have to connect to ServerA and from ServerA > > connect to ServerB and from ServerB connect to ServerC and execute few >

[BangPypers] Multilevel SSH in Python

2012-10-16 Thread davidsnt
Hello Team. I need some help in building a multilevel ssh program in Python. My requirement is that I have to connect to ServerA and from ServerA connect to ServerB and from ServerB connect to ServerC and execute few set of commands and collect the results. I dont have direct access to ServerB o