Re: urgent

2021-08-31 Thread Hari
Yes, I can. Why do you want python? option: ? What task do you want to solve with python? option: ? Why python? option: ? Why not any other language? option: ? On Tue, Aug 31, 2021 at 3:08 AM Igor Korot wrote: > Hi, > > On Mon, Aug 30, 2021 at 4:34 PM Hari > wrote: > > >

urgent

2021-08-30 Thread Hari
i was download ur python software but it is like boring user interface for me like young student to learn ,can u have any updates? -- https://mail.python.org/mailman/listinfo/python-list

[issue11220] https sslv3 error 14077417: illegal parameter

2015-12-15 Thread Hari Krishna Dara
Hari Krishna Dara added the comment: Interesting... the posted Python code for 2.x didn't work for me on 2.6.9 on Mac OS X (10.10.5). The code in catch block further generates the below exception: Traceback (most recent call last): File "/tmp/t.py", line 17, in connect

[issue6966] Ability to refer to arguments in TestCase.fail* methods

2010-06-17 Thread Hari Krishna Dara
Changes by Hari Krishna Dara harid...@gmail.com: -- nosy: +haridsv ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6966 ___ ___ Python-bugs-list

[issue6966] Ability to refer to arguments in TestCase.fail* methods

2010-06-17 Thread Hari Krishna Dara
Hari Krishna Dara harid...@gmail.com added the comment: Changing unittest.TestCase.failUnlessEqual() to something like this will be very useful: def failUnlessEqual(self, first, second, msg=None): Fail if the two objects are unequal as determined by the '==' operator

[issue6966] Ability to refer to arguments in TestCase.fail* methods

2010-06-17 Thread Hari Krishna Dara
Hari Krishna Dara harid...@gmail.com added the comment: Oops... the dict part should have been dict(lhs=first, rhs=second): def failUnlessEqual(self, first, second, msg=None): Fail if the two objects are unequal as determined by the '==' operator. Argument msg could

[issue672115] Assignment to __bases__ of direct object subclasses

2010-05-27 Thread Hari Krishna Dara
Hari Krishna Dara harid...@gmail.com added the comment: I just hit up on this same bug and the class object(object): pass workaround worked fine. I too would like to know how safe this workaround is, could someone more insightful please comment on this? -- nosy: +Hari.Krishna.Dara

pywinauto to show the dialog , menu, etc

2009-12-31 Thread Hari
using PywinAuto? any ideas? thanks in advance Hari -- http://mail.python.org/mailman/listinfo/python-list

Python libexpat and EXPAT are same/Different?

2009-08-20 Thread hari
Hi all, Am very new to XML, I have a query, Does Python libexpat and EXPAT are same or they are diffrent? Thanks in advance. Regards, Hari -- http://mail.python.org/mailman/listinfo/python-list

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2009-05-12 Thread Hari Krishna Dara
Hari Krishna Dara harid...@gmail.com added the comment: I hit exactly this same problem today trying to customize sys.path. We conventionally use .pth file under site-packages to add our custom library paths, but this is not convenient in development while switching between branches/checkout

Word document accessing using python

2008-02-13 Thread Hari
link where I can find some hints. Thanks in advance, Hari -- http://mail.python.org/mailman/listinfo/python-list

sending commands to parallel printer through python

2007-12-05 Thread hari
.please give a example,it will be grateful. Thank you. postedthe same in it.comp.lang.python Regards -Hari -- http://mail.python.org/mailman/listinfo/python-list

Re: socket programming related.

2007-07-11 Thread hari . siri74
On Jul 11, 7:32 pm, [EMAIL PROTECTED] wrote: I have just started working in network programming using python. written code for socket connection between client and server. Client sent data to server for server processing (also server echoing back rcvd data to client). When there is (if no

socket programming related.

2007-07-11 Thread hari . siri74
I have just started working in network programming using python. written code for socket connection between client and server. Client sent data to server for server processing (also server echoing back rcvd data to client). When there is (if no data: break ) no data from client then the while

pattern match !

2007-07-10 Thread hari . siri74
Extract the application name with version from an RPM string like hpsmh-1.1.1.2-0-RHEL3-Linux.RPM, i require to extract hpsmh-1.1.1.2-0 from above string. Sometimes the RPM string may be hpsmh-1.1.1.2-RHEL3- Linux.RPM. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 45, Issue 410

2007-06-27 Thread hari sirigibathina
going here ? curios to learn from my mistake :) -- Warm Regards, Hari On 6/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Send Python-list mailing list submissions to python-list@python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org

Unbound Local error --???

2007-06-26 Thread hari sirigibathina
going here ? curios to learn from my mistake :) -- Warm Regards, Hari -- http://mail.python.org/mailman/listinfo/python-list

variable sub in a list- how to

2007-06-21 Thread hari sirigibathina
D- How can I substitute a variable into a list ? ex: list() var = 'Prog' list.append($Prog) //error occur here -- Warm Regards, Hari -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I add users using Python scripts on a Linux machine

2007-01-01 Thread Hari Sekhon
/listinfo/python-list -- Hari Sekhon -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do this?

2006-10-05 Thread Hari Sekhon
Do whichever makes you happy I'd say The only real difference is coding style and the formatting options of the %s way that I can see. %s is negligibly slower in my tests, but we're talking the tiniest fraction of a second over thousands of iterations, not worth considering... -h Hari Sekhon

Re: excepthook doesn't give exact line number

2006-10-05 Thread Hari Sekhon
an excepthook then I'd be grateful to hear them. -h Hari Sekhon Peter Otten wrote: Hari Sekhon wrote: The problem is that the excepthook gives the line of the topmost called function rather that the actual line that generated the error the way you get it with a normal traceback

Re: excepthook doesn't give exact line number

2006-10-05 Thread Hari Sekhon
back since the traceback was fed to the excepthook? Is there another way of getting the traceback like you see when the exception isn't caught? Thanks for the help. -h Hari Sekhon Peter Otten wrote: Hari Sekhon wrote: The problem is that the excepthook gives the line of the topmost calle

Re: Best way to handle large lists?

2006-10-04 Thread Hari Sekhon
then perhaps it would be a quicker lookup? On the other hand, if it is nearer the end of the set of keys would it not be slower? Does this make it more dependent on the search order whether a list or a dict is faster? Or am I completely on the wrong track? -h Hari Sekhon Fredrik Lundh wrote: Hari

excepthook doesn't give exact line number

2006-10-03 Thread Hari Sekhon
traceback.print_exc(). Here it doesn't seem to work, it always give None, likely because the excepthook has taken it or something. Any guiding wisdom from the masters out there? Much appreciated, thanks for reading. -h -- Hari Sekhon -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to handle large lists?

2006-10-03 Thread Hari Sekhon
in dicts rather than using positional indexes in lists/arrays... At least that is what I thought. Can anyone confirm this? -h Hari Sekhon Bill Williams wrote: I don't know enough about Python internals, but the suggested solutions all seem to involve scanning bigList. Can this presumably

Re: Best way to handle large lists?

2006-10-03 Thread Hari Sekhon
than dicts and that variables stored in lists were faster referenced/used. It was one reason that was cited as to why local vars are better than global vars. The guy actually did a looping test and timed it to show the speed difference. Can anybody please step in and correct us? -h Hari Sekhon

Re: Making sure script only runs once instance at a time.

2006-10-02 Thread Hari Sekhon
Fredrik Lundh wrote: Hari Sekhon wrote: I'm not sure if that is a very old way of doing it, which is why I was reluctant to do it. My way actually uses the process list of the os (linux) and counts the number of instances. If it is more than 0 then another process is running

Re: Making sure script only runs once instance at a time.

2006-10-02 Thread Hari Sekhon
AMENDMENT: The line number_procs=commands.getstatusoutput('ps -ef|grep %s|grep -v grep|wc -l' % scriptpath) was supposed to be number_procs=int(commands.getstatusoutput('ps -ef|grep %s|grep -v grep|wc -l' % scriptpath)[1]) -h Hari Sekhon Hari Sekhon wrote: Fredrik Lundh wrote

commands.getstatusoutput result is not command line exit value!!!

2006-10-02 Thread Hari Sekhon
tried os.system('somecommand') in the interactive python shell and it too returned the same result for the exit code as the unix shell, 12, but re-running the commands.getstatusoutput() with the exact same command still gave 3072. Is commands.getstatusoutput() broken or something? -h -- Hari

Re: commands.getstatusoutput result is not command line exit value!!!

2006-10-02 Thread Hari Sekhon
his moment. -h Hari Sekhon Steve Holden wrote: Hari Sekhon wrote: I'm running a command like import commands result = commands.getstatusoutput('somecommand') print result[0] 3072 However, this exit code made no sense so I ran it manually from the command line in bash on my li

Re: commands.getstatusoutput result is not command line exit value!!!

2006-10-02 Thread Hari Sekhon
Hari Sekhon Steve Holden wrote: A famous Holden typo - it should have been 12 * 256 == 3072, but really it shouldn't have been beyond you to perform a division of 3072 by 12 (given that you already knew the number 12 was potentially involved). Basically the value you want is shifted up 8

Re: commands.getstatusoutput result is not command line exit value!!!

2006-10-02 Thread Hari Sekhon
ok, I was thinking of shifting using subprocess, guess I'd better do that and forget about this waste of time. thanks Hari Sekhon Fredrik Lundh wrote: Hari Sekhon wrote: I'm sorry, this may seem dense to you but I have to ask. What on earth are you talking about

Re: Making sure script only runs once instance at a time.

2006-10-02 Thread Hari Sekhon
used a very similar method in bash before for something, saving the pid and env vars and then using the binary kill -0 pid to test if a program is alive by finding out whether a signal could be sent to it. Works nicely there too. -h Hari Sekhon Fredrik Lundh wrote: Hari Sekhon wrote

Re: commands.getstatusoutput result is not command line exit value!!!

2006-10-02 Thread Hari Sekhon
g and I've never even heard of this thing before, I guess only the really battle-scarred old skool ones may know of it. -h Hari Sekhon Scott David Daniels wrote: Steve Holden wrote: Hari Sekhon wrote: I'm running a command like import commands result = commands.getst

Re: Making sure script only runs once instance at a time.

2006-09-29 Thread Hari Sekhon
by this name is running. If so, print msg and exit. simple. -h Hari Sekhon MaR wrote: A very brutal but simple and effective method is to bind() to a socket on localhost eg (127.0.0.1, 4711), listen() but never accept(). Any other process trying to to bind() on the same port will fail.. When

Re: Making sure script only runs once instance at a time.

2006-09-29 Thread Hari Sekhon
and causes minor annoyance (to somebody who knows that is, more annoyance to somebody who doesn't). -h Hari Sekhon Paul Rubin wrote: Hari Sekhon [EMAIL PROTECTED] writes: Seeing as there doesn't seem to be a good answer to this (or at least not one that we have so far some up with) I

Making sure script only runs once instance at a time.

2006-09-27 Thread Hari Sekhon
the way I can in shell. I am running this on linux. Thanks -h -- Hari Sekhon -- http://mail.python.org/mailman/listinfo/python-list

Re: best way of testing a program exists before using it?

2006-09-12 Thread Hari Sekhon
'): print_something_and_exit(filename) :) problem with that is that the path may change between installations on different machine and I can't guarantee /dir1/dir2 which is why a test of all dirs in the path is more portable. -- Hari Sekhon -- http://mail.python.org/mailman/listinfo/python

best way of testing a program exists before using it?

2006-09-11 Thread Hari Sekhon
something like: if os.system('which somecommand') != 0: print you don't have %s installed % somecommand sys.exit(1) I know that isn't portable which is why a python solution would be better (although this will run on unix anyway, but it'd be nice if it ran on windows too). -h -- Hari

Re: best way of testing a program exists before using it?

2006-09-11 Thread Hari Sekhon
Steve Holden wrote: Hari Sekhon wrote: I am writing a wrapper to a binary command to run it and then do something with the xml output from it. What is the best way of making sure that the command is installed on the system before I try to execute it, like the python equivalent

Re: best way of testing a program exists before using it?

2006-09-11 Thread Hari Sekhon
Rob Wolfe wrote: Hari Sekhon wrote: I am writing a wrapper to a binary command to run it and then do something with the xml output from it. What is the best way of making sure that the command is installed on the system before I try to execute it, like the python equivalent

Re: best way of testing a program exists before using it?

2006-09-11 Thread Hari Sekhon
Steven Bethard wrote: Hari Sekhon wrote: I am writing a wrapper to a binary command to run it and then do something with the xml output from it. What is the best way of making sure that the command is installed on the system before I try to execute it, like the python

Re: best way of testing a program exists before using it?

2006-09-11 Thread Hari Sekhon
Tim Williams wrote: On 11/09/06, Hari Sekhon [EMAIL PROTECTED] wrote: Steve Holden wrote: Hari Sekhon wrote: The easiest way to test whether the command will run is to try and run it. If the program doesn't exist then you'll get an exception, which you can catch. Otherwise you'll

Re: sending emails using python

2006-09-07 Thread Hari Sekhon
? I would, but I don't use exchange server. :) The one exchange server I used in the past didn't accept SMTP mail. errr, I used to admin Exchange, if it does accept SMTP then how could it function as a live mail server? Hari Sekhon -- http://mail.python.org/mailman/listinfo/python-list

Re: sending emails using python

2006-09-07 Thread Hari Sekhon
can't hope for the world with windows only "techies"... although in fairness, Exchange and Outlook is a great combination... you could always try ximian's exchange connector for evolution, I managed to get some emails with that... but anyway, ot... Hari Sekhon -- http://mail.

Testing a website with HTTPS login and cookies

2006-09-05 Thread Hari Sekhon
exactly what I want in terms of output so I'd rather write something myself. (I'm also curious as to the best way to do this) If anybody knows how to do this could they please give me a quick pointer and tell me what libraries I need to go read up on? Thanks Hari -- http://mail.python.org

Re: are there any lib for receive hotmail ?

2006-09-05 Thread Hari Sekhon
ut haven't tried. -tkc I know this isn't technically helping, but why use hotmail when gmail is so much better and gives you pop access? Even old yahoo gives you pop access to your mailbox.... Hari Sekhon -- http://mail.python.org/mailman/listinfo/python-list

Re: Open file handles?

2006-08-16 Thread Hari Sekhon
danielx wrote: Is there an equivalent in windows? Jon wrote: Perhaps using os you could work with lsof [http://www.linuxcommand.org/man_pages/lsof8.html] Jon Thomas Bartkus wrote: This may be more of a Linux question, but I'm doing this from Python. . How

Re: os.path.normpath

2006-08-16 Thread Hari Sekhon
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I am using a windows box and passing a string like "../foo/../foo2" to normpath which then returns "..\\foo2". But if this string is going into a webpage link it should really be "../foo". Is there any way to tell os.path.normpath

xml.sax problem, help needed.

2006-08-01 Thread Hari Sekhon
or pointers anybody could give would be greatly appreciated... Hari -- http://mail.python.org/mailman/listinfo/python-list

cherrypy tracing back all the time

2006-07-23 Thread Hari Sekhon
I've got a very simple script with cherrypy but for some reason the cherrypy server is constantly tracing back but it stays up, kind of, the performance etc though shows that something is wrong.import cherrypyimport threading def someFunc(): while 1: print workingthreading._start_new_thread(

Re: cherrypy tracing back all the time

2006-07-23 Thread Hari Sekhon
On 23/07/06, Hari Sekhon [EMAIL PROTECTED] wrote: I've got a very simple script with cherrypy but for some reason the cherrypy server is constantly tracing back but it stays up, kind of, the performance etc though shows that something is wrong.import cherrypy import threading def someFunc(): while

threading._start_new_thread executes twice?

2006-07-19 Thread Hari Sekhon
I'm got a script which has a function with a while 1: loop that seems to execute the line it's doing twice instead of just once on each pass when called in a thread...#Script Startimport threading,time,cherrypy def func(): while 1: print time.ctime() time.sleep(30)threading._start_new_thread(

Progress Bars in python

2006-07-12 Thread Hari Sekhon
to replace the last one instead of printing them in succession. Does anybody have any good suggestions about what the best way of doing this or any other suggestions for the best ways to show that the script is processing...? Hari -- http://mail.python.org/mailman/listinfo/python-list

Re: Progress Bars in python

2006-07-12 Thread Hari Sekhon
On 12/07/06, Fredrik Lundh [EMAIL PROTECTED] wrote: If the output of the script is sent to a logfile, this tends to puke all over the logfile... creating one additional entry per iteration, but it's a good start and I'll look at that link which looks very promising. there's no way to do this

catching syntax errors via excepthook?

2006-07-03 Thread Hari Sekhon
I've written an except hook into a script as shown below which works well for the most part and catches exceptions. import sys def myexcepthook(type,value,tb): do something sys.excepthook=myexcepthook rest of script (now protected by catchall exception hook) I've been intentionally

Re: style question

2006-06-27 Thread Hari Sekhon
On 26/06/06, Claudio Grondi [EMAIL PROTECTED] wrote: Scott David Daniels wrote: Claudio Grondi wrote: clever stuff to di indentation When necessary to skip first line _and_ indentation: message = This is line 1 This is line 2 This is line 3 .replace('\n', '\n')[1:] # adjust here '\n' to

how to do -vv for very verbose?

2006-06-27 Thread Hari Sekhon
I'm using optparse.Optionparser to take switches for a script I'm writing, but I can't see how to give it -vv for very verbose. the option for -v is simply set to True by the option parser if present, whereas I really want a numeric value, 1 if there is -v and 2 if there is -vv. Any ideas on

Re: style question

2006-06-27 Thread Hari Sekhon
Claudio Grondi wrote: Hari Sekhon wrote: On 26/06/06, *Claudio Grondi* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Scott David Daniels wrote: Claudio Grondi wrote: clever stuff to di indentation When necessary to skip first line _and_ indentation

Re: how to do -vv for very verbose?

2006-06-27 Thread Hari Sekhon
Fredrik Lundh wrote: Hari Sekhon wrote: I'm using optparse.Optionparser to take switches for a script I'm writing, but I can't see how to give it -vv for very verbose. the option for -v is simply set to True by the option parser if present, whereas I really want a numeric value

Unbound Local error? How?

2006-06-27 Thread Hari Sekhon
I've got some code as follows: import re re_regexname = re.compile('abc') . . various function defs . def func1(): ... func2() ... def func2(): if re_regexname.match('abc'): do something if __name__ == '__main__': func1() but this returns the

Re: Unbound Local error? How?

2006-06-27 Thread Hari Sekhon
Diez B. Roggisch wrote: Hari Sekhon wrote: import re re_regexname = re.compile('abc') . . various function defs . def func1(): ... func2() ... def func2(): if re_regexname.match('abc'): do something if __name__ == '__main__': func1() The above clearly

Re: Unbound Local error? How?

2006-06-27 Thread Hari Sekhon
Bruno Desthuilliers wrote: Hari Sekhon wrote: I've got some code as follows: import re re_regexname = re.compile('abc') . . various function defs . def func1(): ... func2() ... def func2(): if re_regexname.match('abc'): do something if __name__

style question

2006-06-26 Thread Hari Sekhon
Is it better to do: message = This is line1. This is line2 This is line3\n or message = This is line1.\n message = message + This is line2\n message = message + This is line3\n Since the first method does not follow python's clean and easy looking indentation structure but the second just

Re: style question

2006-06-26 Thread Hari Sekhon
MTD wrote: Hari Sekhon wrote: Is it better to do: message = """This is line1. This is line2 This is line3\n""" or message = "This is line1.\n message = message + "This is line2\n" message = message + "This is line3\n"

Re: What's the best way to wrap a whole script in try..except?

2006-06-22 Thread Hari Sekhon
On 21/06/06, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Hari Sekhon wrote: I want to wrap a whole script in try ... except. What is the best way of doing this? Consider the following: - try:import modules CODEdef notifyme(traceback): code to tell me there is a problem except Exception

What's the best way to wrap a whole script in try..except?

2006-06-21 Thread Hari Sekhon
to instead do: import a couple of modules def notifyme(): code to tell me there is a problem try: CODE except Exception, traceback: notifyme(traceback) How you you handle this? Hari -- http://mail.python.org/mailman/listinfo/python-list

Re: difference between import from mod.func() and x=mod.func()

2006-06-21 Thread Hari Sekhon
anything else to say on the matter.ThanksHariOn 20/06/06, Fredrik Lundh [EMAIL PROTECTED] wrote: Hari Sekhon wrote: What is the difference in terms of efficiency and speed between from os import path and import os path=os.paththe only difference is that the former only sets the path variable, while

Re: WinPops

2006-06-21 Thread Hari Sekhon
be better if there was just a cross platform library for this protocol so you could justimport winpopwinpop.send (host,message)Too much to ask?HariOn 01/06/06, Peter Gsellmann [EMAIL PROTECTED] wrote:Roger Upole wrote: Hari Sekhon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi

Re: memory error with zipfile module

2006-06-21 Thread Hari Sekhon
which are missing from python as a language? Not that I'm complaining, I'm just curious... I'm a fledgeling programmer so I don't mind being gently corrected by any veterans around. Hari -- http://mail.python.org/mailman/listinfo/python-list

Re: What's the best way to wrap a whole script in try..except?

2006-06-21 Thread Hari Sekhon
Jon Ribbens wrote: In article [EMAIL PROTECTED], Hari Sekhon wrote: I want to wrap a whole script in try ... except. What is the best way of doing this? You could do this maybe: import sys def excepthook(exc_type, exc_value, tb): import

Re: What's the best way to wrap a whole script in try..except?

2006-06-21 Thread Hari Sekhon
Jon Ribbens wrote: In article [EMAIL PROTECTED], Hari Sekhon wrote: I want to wrap a whole script in try ... except. What is the best way of doing this? You could do this maybe: import sys def excepthook(exc_type, exc_value, tb): import

Re: What's the best way to wrap a whole script in try..except?

2006-06-21 Thread Hari Sekhon
Hari Sekhon wrote: Jon Ribbens wrote: In article [EMAIL PROTECTED], Hari Sekhon wrote: I want to wrap a whole script in try ... except. What is the best way of doing this? You could do this maybe: import sys def excepthook(exc_type, exc_value, tb

Re: memory error with zipfile module

2006-06-21 Thread Hari Sekhon
Fredrik Lundh wrote: Hari Sekhon wrote: Is it me or is having to use os.system() all the time symtomatic of a deficiency/things which are missing from python as a language? it's you. /F I take it that it's still a work in progress to be able to pythonify

Re: memory error with zipfile module

2006-06-21 Thread Hari Sekhon
Fredrik Lundh wrote: Hari Sekhon wrote: I take it that it's still a work in progress to be able to pythonify everything, and until then we're just gonna have to rely on shell and those great C coded coreutils and stuff like that. Ok, I'm rather fond of Bash+coreutils, highest

difference between import from mod.func() and x=mod.func()

2006-06-20 Thread Hari Sekhon
/speed. Not sure if this is right. Seeing as python folks seem to value simplicity and cleanness, is there a preferred coding method? (again I would think the first to the the preferred) Hari -- http://mail.python.org/mailman/listinfo/python-list

WinPops

2006-05-26 Thread Hari Sekhon
Hi, Is there a way of sending winpops (Windows Pop-Up / Net Send messages) in python? Perhaps some library or something that I can use under both Windows and Linux? Hari -- http://mail.python.org/mailman/listinfo/python-list

memory error with zipfile module

2006-05-19 Thread Hari Sekhon
I do import zipfile zip=zipfile.ZipFile('d:\somepath\cdimage.zip') zip.namelist() ['someimage.iso'] then either of the two: A) file('someimage.iso','w').write(zip.read('someimage.iso')) or B) content=zip.read('someimage.iso') but both result in the same error: Traceback (most recent call

Strange IO Error when extracting zips to a network location

2006-05-17 Thread Hari Sekhon
? Thanks for any help or suggestions anybody can give me. Hari -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange IO Error when extracting zips to a network location

2006-05-17 Thread Hari Sekhon
(contents) but I still get the same result. -h Hari Sekhon wrote: Hi, I've written a script to run on windows to extract all zips under a given directory path to another directory path as such: python extractzips.py fetch all zips under this dir put all extracted files under this dir

How to get a part of string which follows a particular pattern using shell script

2006-05-08 Thread Hari
Hi all, I need to get a part of string which follows a pattern 'addr=' For example: a)test=192.168.1.17:/home/ankur/nios_fson/mnt/tmptype nfs(rw,addr=192.168.1.17) b)test=/dev/root on / typr nfs (rw,v2,rsize=1024,wsize=1024,hard,udp,nolock,addr=192.168.1.93) I need to get the ipaddress from

Getting File Permissions

2006-03-07 Thread Hari
, line 1, in ? NameError: name 'octal' is not defined Since I am new to python, can any one help me to solve this error? A bunch of thanks in advance. Hari -- http://mail.python.org/mailman/listinfo/python-list

Parsing bash_history and inputting into mysql (Intrusion Detection)

2005-05-20 Thread sreekanth . hari
I have a seemingly tough assignment for my Senior Project. I need to develop an Intrusion Detection System. My approach is to parse the bash_history file of each user into a mysql database, assign a threshold for commands or sequences of commands and then alert the admin of nethin fishy is found.