Re: Using re to perform grep functionality in Python

2017-03-01 Thread Michael Torrie
On 03/01/2017 02:55 PM, rob...@forzasilicon.com wrote: > Obviously, not what I want. Can anyone feed some input? You've already got some good answers, but I just wanted to point you at this good resource: http://www.dabeaz.com/generators/ Pretty much anything you do in a shell script that involv

Re: Using re to perform grep functionality in Python

2017-03-01 Thread Cameron Simpson
On 01Mar2017 13:55, rob...@forzasilicon.com wrote: I'm relatively new to Python, and I am having some trouble with one of my scripts. Basically, this script connects to a server via ssh, runs Dell's omreport output, and then externally pipes it to a mail script in cron. The script uses an exte

Re: Using re to perform grep functionality in Python

2017-03-01 Thread robert
Thanks, Chris. That was nice and easy and very simple. -- https://mail.python.org/mailman/listinfo/python-list

Re: Using re to perform grep functionality in Python

2017-03-01 Thread Chris Angelico
On Thu, Mar 2, 2017 at 8:55 AM, wrote: > Hi All, > > I'm relatively new to Python, and I am having some trouble with one of my > scripts. Basically, this script connects to a server via ssh, runs Dell's > omreport output, and then externally pipes it to a mail script in cron. The > script uses

Using re to perform grep functionality in Python

2017-03-01 Thread robert
Hi All, I'm relatively new to Python, and I am having some trouble with one of my scripts. Basically, this script connects to a server via ssh, runs Dell's omreport output, and then externally pipes it to a mail script in cron. The script uses an external call to grep via subprocess, but I woul