Reg python regexp

2018-03-21 Thread sankarramanv
Hi, I have a requirement. cmd="cat |grep -c 'if [ -t 1 ]; then mesg n 2>/dev/null; fi'" I need to escape only the square brackets in above variable since its not grepping without escaping the brackets. Please help. Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Custom Python import module failed (protobuf)

2018-04-20 Thread sankarramanv
Hi, I need to use the google protobuf for my task. 1. Yum install protobuf worked for default python 2.7.5 in my VM. But I need to test with Python 2.7.14. I installed protobuf using yum on "/usr/lib64/python2.7/site-packages" I added the above path to PYTHONPATH and its not recognizing when