Re: Cant get my tshark pharse to work
On Thursday, October 9, 2014 9:46:10 PM UTC+3, Tal Bar-Or wrote: > Hello All, > > > > I am writing some code to get captured wiresahrk pcap file , using > popen.subprocess and extract some table csv format related to SMB, but for > some reason i can get the csv when using off-course regular cmd line its work > > The code as follow below , maybe someone with exprience with such can help > > Please advice > > Thanks > > > > import socket,subprocess > > import os,time > > > > sharkCall = ["tshark","-i" ,"1", "-w",os.getcwd() +'/smbsession.pcap'] > > sharkProc = subprocess.Popen(sharkCall,executable="C:/Program > Files/Wireshark/tshark.exe") > > localip = socket.gethostbyname(socket.gethostname()) > > > > a = 0 > > > > while a ==0: > > a = sharkProc.pid > > time.sleep(2) > > > > > > ipflt = '' > > > > listip = socket.gethostbyname_ex('media.isilon.gefen.local')[2] > > > > for ip in listip: > > ipflt= ipflt+ "ip.addr==" + ip + "||" > > ipflt = ipflt + "ip.addr==" + localip > > > > if ipflt.endswith('||'): > > ipflt = ipflt[:-2] > > print (ipflt) > > b= os.path.getsize("//media.isilon.gofn.local/Media/New Text Document.txt") > > #statinfo > > print(b) > > > > > > #time.sleep(2) > > sharkProc.kill() > > tsharkCall = > ["tshark","-r",'C:/traces_test/smbsession.pcap',"-Y",ipflt,"-T","fields","-e","ip.src","-e","ip.dst","-e","smb.file",\ > >"-e","smb.path","-e","smb.time","-e","tcp.time_delta", > "-E","header=y","-E","separator=,","-E","quote=d","-E","occurrence=f",\ > >'> '+os.getcwd() +'/tracetemp.csv'] > > tsharkProc = subprocess.Popen(tsharkCall,executable="C:/Program > Files/Wireshark/tshark.exe") > > > > a = 0 > > > > while a ==0: > > a = tsharkProc.pid > > time.sleep(2) > > print ('Finished') the problematic code where sharkCall = ["tshark","-r",'C:/traces_test/smbsession.pcap',"-Y",ipflt,"-T","fields","-e","ip.src","-e","ip.dst","-e","smb.file",\ "-e","smb.path","-e","smb.time","-e","tcp.time_delta", "-E","header=y","-E","separator=,","-E","quote=d","-E","occurrence=f",\ '> '+os.getcwd() +'/tracetemp.csv'] tsharkProc = subprocess.Popen(tsharkCall,executable="C:/Program Files/Wireshark/tshark.exe") i changed it to as follows below and now its works , thanks tsharkCall = '"' +os.environ["ProgramFiles"]+'/Wireshark/tshark.exe"' +" -r "+os.getcwd() +'/smbsession.pcap'+" -Y "+'"'+toto+'"'+" -T fields -e ip.src -e ip.dst -e smb.file -e smb.path -e smb.time -e tcp.time_delta -E header=y -E separator=, -E quote=d -E occurrence=f > "+os.getcwd() +"/trac_session.csv" tsharkProc = subprocess.Popen(tsharkCall,shell=True) -- https://mail.python.org/mailman/listinfo/python-list
Re: [OT] spelling colour / color was Re: Toggle
Am 10.10.14 22:05, schrieb alister: Would the French tolerate me using an alternative Variant (Canadian or Carribean)? I think not UK English as spoken in England is the definitive version. The clue is in the Name - English not American I tend to agree that British English is the "correct" version for me, since I'm European, though not British. The usage of -ise in verbs, however, is a newer attempt to set the British English apart from the American: http://blog.oxforddictionaries.com/2011/03/ize-or-ise/ and http://www.oxforddictionaries.com/words/ize-ise-or-yse Being a non-native English speaker/writer, I myself stick to the recommendations of the Oxford dictionary. Christian -- https://mail.python.org/mailman/listinfo/python-list
Re: [OT] spelling colour / color was Re: Toggle
Dennis Lee Bieber : > And then there is REXX... Which deliberately has both centre() and > center() in its standard library -- and they do the same thing... I'm getting a new appreciation for Lisp's age-old "car" and "cdr". The scientists have done this international thing for centuries. Their single-letter naming might be the secret of their glorious success. Obscure acronyms for the win. Marko -- https://mail.python.org/mailman/listinfo/python-list
Re: [OT] spelling colour / color was Re: Toggle
On Sat, Oct 11, 2014 at 9:33 PM, Marko Rauhamaa wrote: > I'm getting a new appreciation for Lisp's age-old "car" and "cdr". > > The scientists have done this international thing for centuries. Their > single-letter naming might be the secret of their glorious success. > > Obscure acronyms for the win. If it means nothing to anybody, nobody's at a disadvantage compared to anyone else... ChrisA -- https://mail.python.org/mailman/listinfo/python-list
EuroPython Workgroups: Call for Volunteers
(This post is also available for online reading at: http://www.europython-society.org/post/99718376575/europython-workgroups-call-for-volunteers) Dear EuroPython community, the EuroPython Society is happy to announce a new organizational concept that we'd like to put in place for the next EuroPython conferences: the EuroPython Workgroups. Motivation -- In the past, the EPS granted permission to use the brand to local organizers based on a set of requirements, and the local organizing team then had to run the event in collaboration with the EPS. Most of the work was centered around the local team. This model no longer scales and doesn’t encourage the community to take part in the organization process. The workload and the financial risks of running such a big conference for the local teams is very high. Proposed New Structure (Workgroups) --- The biggest change is the introduction of permanent workgroups integrated with EPS and its activities. This change is designed to address the issues mentioned above in a way which allows our community to get more involved, while at the same time reducing the risk and work load on individual teams. Workgroups will be coordinated by the EuroPython Society board based on the community feedback and proposals, from their definition and creation to their implementation. The key workgroups we have identified so far are: * Conference Administration (contracts, venue contact, ticket support, satellite conferences, legal support, insurance, licensing) * Finance (budget, controlling, accounting, billing, invoicing, taxes, payment system administration, Treasurer needs be part of this WG) * Sponsors (sponsor contacts, sponsor logistics, room/booth assignment, recruiting session, jobs fair, exhibit hall, startup row) * Communications (press, community relations, diversity/outreach/CoC, CoC contact, announcements, social media, attendee tools, volunteer coordination, mailing lists) * Support (helpdesk, attendee support contact, visa help, travel management, chat support for attendees) * Financial Aid (setup, grant selection, aid organisation) * Marketing/Design (brochures, advertisements, banners, flyers, travel guide, t-shirts, lanyards, badges, panels, logo) * Program (talk selection, scheduling, session chairs, sprint/openspace/keynote/lightning talks/poster session organization, Young Coders session, Python for Teachers) * Web (web site support, ticket system, administration, backups, payment system integration, hosting, chat support for attendees) * Media (video recording, live streaming, live translations, uploads to YouTube and archive.org) * On-site Team (on-site support, local contact, help with venue selection, help with catering selection, partner program, social events, buddy program, internet access, venue contact, catering contact, on-site logistics) All of these workgroups, except for the On-site Team, will remain active when changing location. We expect to keep institutional knowledge within the organization and make transitions to new locations easier by using this approach. The EuroPython Society collects and reviews the applications to each workgroup. The EPS board will then vote on the chair and a set of permanent workgroup members with (workgroup internal) voting rights and then have the workgroup chair appoint additional (non-voting) members as necessary. Workgroups will be confirmed/reestablished by board vote every year, this allows non-voting members to become voting members in the following year. Workgroups and board will update, coordinate and plan activities on a regular basis. While every workgroup will be responsible for its own coordination and establish a workflow that best fits its needs, we expect all workgroups to integrate and interact with other workgroups to create a productive work environment. To simplify and speed up the workgroup setup, we will create a set of workgroup guidelines which aim at collecting the institutional knowledge gathered over the years. We will put these guidelines up for comment in the coming weeks. Call for Volunteers --- Please help us build EuroPython and keep making it better and better every year. If you want to help, please apply for one or more workgroups which you feel match your interests and experience. If you'd like to help, but don't have enough experience, yet are willing to learn, please apply as well. To apply please send an email to bo...@europython.eu with your details, the motivation for applying (basically why and how you think you could help) and the workgroup(s) you'd like to apply for. Just to clarify: We will issue a separate Call for Participation (CFP) for the On-site Team, so you don't need to apply for this workgroup before we have selected an On-site Team. Thank you, -- EuroPython Society -- https://mail.python.org/mailman/listinfo/python-list
Re: [OT] spelling colour / color was Re: Toggle
On 11/10/2014 10:37, Christian Gollwitzer wrote: Being a non-native English speaker/writer, I myself stick to the recommendations of the Oxford dictionary. Christian But you do realise the Oxford dictionary is different to English usage and is renowned for using what is known as Oxford spelling? You wont find -ize used by the BBC in content for the UK nor will you find British newspapers using it. The Oxford spellings are so far out on their own you can set en-GB as a language tag or en-GB-oed. -- https://mail.python.org/mailman/listinfo/python-list
Butterflow installation on windows
The butterflow package (https://pypi.python.org/pypi/butterflow/0.1.4a1) has recently been released. I would like to know if anyone has been able to install it on a windows platform. -- https://mail.python.org/mailman/listinfo/python-list
Re: [OT] spelling colour / color was Re: Toggle
On 11/10/14 12:45, mm0fmf wrote: > On 11/10/2014 10:37, Christian Gollwitzer wrote: >> Being a non-native English speaker/writer, I myself stick to the >> recommendations of the Oxford dictionary. >> >> Christian > > But you do realise the Oxford dictionary is different to English usage > and is renowned for using what is known as Oxford spelling? You wont > find -ize used by the BBC in content for the UK nor will you find > British newspapers using it. > [snip] I don't know about the BBC etc. but it pretty much corresponds to my usage. I tend to use 'ize', but not for words like analyse (where for whatever reason it just doesn't look right with a 'z' - maybe because realization is fine but analyzis is not). I suspect some non-US English speakers, when faced with the option, assume the 'z' might be a US spelling and opt for the 's' instead. A useful rule of thumb perhaps, that might make 's' common usage for e.g. the BBC / newspapers. But 'z' is still used by some of us outside the media. The media have their own quirks when it comes to English. The BBC regularly use "top of" / "bottom of" in the sense of "start of" / "end of", but I don't know any British people who would (currently) use that in conversation. (This only started a few years ago, and the first time I heard it I had to work out what it meant from context.) Duncan -- https://mail.python.org/mailman/listinfo/python-list
Re: [OT] spelling colour / color was Re: Toggle
On 11 October 2014 10:37:51 BST, Christian Gollwitzer wrote: >I tend to agree that British English is the "correct" version for me, >since I'm European, though not British. > >The usage of -ise in verbs, however, is a newer attempt to set the >British English apart from the American: > > http://blog.oxforddictionaries.com/2011/03/ize-or-ise/ and > http://www.oxforddictionaries.com/words/ize-ise-or-yse > >Being a non-native English speaker/writer, I myself stick to the >recommendations of the Oxford dictionary. Oxford Dictionaries online is not just British English, it derives common usage from a corpus of English used around the world: http://www.oxforddictionaries.com/words/what-are-the-main-differences-between-the-oed-and-odo http://www.oxforddictionaries.com/words/the-oxford-english-corpus Simon -- https://mail.python.org/mailman/listinfo/python-list
bidict
Dear comp.lang.python, I wrote a library called bidict providing a bidirectional mapping data structure a few years ago and got some great feedback from people here. Recently I put some more work into it and would love to get some feedback on the API, implementation, and whatever else I can do to help users find it and make sure it meets their needs. The code can be found at: https://github.com/jab/bidict And docs are at: http://bidict.readthedocs.org Constructive feedback gratefully received. Thanks for reading. -- https://mail.python.org/mailman/listinfo/python-list
Re: [OT] spelling colour / color was Re: Toggle
On Oct 11, 2014, at 3:20 PM, Dennis Lee Bieber wrote: > On Sat, 11 Oct 2014 16:26:43 +0100, duncan smith > declaimed the following: > > >> The media have their own quirks when it comes to English. The BBC >> regularly use "top of" / "bottom of" in the sense of "start of" / "end >> of", but I don't know any British people who would (currently) use that >> in conversation. (This only started a few years ago, and the first time >> I heard it I had to work out what it meant from context.) >> > > That usage I think is ancient... I'm sure I've heard it back when there > was a reasonable BBC World Service (along with VOA, Radio Netherlands, and > etc. running on Short Wave"... > > Top of the Hour… Of course, musicians have used it for years, as in “Take it from the top.” And (with reference to the earlier discussion), just because something is specified in the Oxford English Dictionary, doesn’t mean it is universally approved of. Take the “Oxford Comma” for example. -Bill -- https://mail.python.org/mailman/listinfo/python-list
Re: Python 3.4.1 on W2K?
Michael Torrie wrote: > >That's really interesting. I looked briefly at the page. How does your >python extension work with xywrite? Does it manipulate xywrite >documents or does it tie in at runtime with Xywrite somehow? If so, how >does it do this? Crossing the divide into a 16-bit app is pretty >impressive. Actually, Microsoft made it pretty easy to call 32-bit DLLs in a 16-bit process and vice versa. That's why many of us were surprised when they did not provide the same capability in the 32/64 transition. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. -- https://mail.python.org/mailman/listinfo/python-list
Re: [OT] spelling colour / color was Re: Toggle
On 11/10/14 20:55, William Ray Wing wrote: > On Oct 11, 2014, at 3:20 PM, Dennis Lee Bieber wrote: > >> On Sat, 11 Oct 2014 16:26:43 +0100, duncan smith >> declaimed the following: >> >> >>> The media have their own quirks when it comes to English. The BBC >>> regularly use "top of" / "bottom of" in the sense of "start of" / "end >>> of", but I don't know any British people who would (currently) use that >>> in conversation. (This only started a few years ago, and the first time >>> I heard it I had to work out what it meant from context.) >>> >> >> That usage I think is ancient... I'm sure I've heard it back when there >> was a reasonable BBC World Service (along with VOA, Radio Netherlands, and >> etc. running on Short Wave"... >> >> Top of the Hour… > > Of course, musicians have used it for years, as in “Take it from the top.” > [snip] I think it must be a more recent thing with BBC (TV) presenters / newsreaders (I rarely listen to radio); or, at least, it has become a lot more common. I can see it makes perfect sense with e.g. sheet music. You start again at the top. It was the "top / bottom of the [TV] programme" that I didn't immediately get, because I was thinking of a timeline running left to right (perhaps rather than the script used by the presenters). Duncan -- https://mail.python.org/mailman/listinfo/python-list