[Tutor] Running EXE file with arguments

2013-03-08 Thread 3n2 Solutions
Below is the shell command that works fine if ran as is: C:\FinalTest>fix.exe -com 17 -baud 38400 -setconfig base.dat I'm trying to automate it using the following python command but it gives me an error: "returned non-zero exit status 1" subprocess.check_call(['c:/FinalTest/fix.exe', '-com 1

Re: [Tutor] Tutor Digest, Vol 108, Issue 22

2013-02-06 Thread 3n2 Solutions
gt; > Message: 1 > Date: Wed, 06 Feb 2013 11:12:54 +0100 > From: Peter Otten <__pete...@web.de> > To: tutor@python.org > Subject: Re: [Tutor] help with running perl script that writes to a > text file > Message-ID: > Content-Type: text/plain; charset="

[Tutor] help with running perl script that writes to a text file

2013-02-05 Thread 3n2 Solutions
Hello, I want to automate the following manual process from DOS promp: c:/scripts/perl>perl fix.pl base.gtx >base.txt Here is my python script: path="c:/scripts/perl/" subprocess.call(['perl','fix.pl','base.gtx >base.txt',path]) I also tried this alternative: subprocess.Popen(['perl','fix.pl'

[Tutor] Can Python monitor web browser content

2013-01-25 Thread 3n2 Solutions
Hello, I was wondering if Python can monitor web browser content. Specifically, I'm connected to a Machine to Machine device (essentially a Gateway) and monitoring its activity on a web browser (either IE or Chrome). There are certain parameters like RSSI (received signal strength indicator ) that

[Tutor] how to track an entry in a large text file

2013-01-16 Thread 3n2 Solutions
Say I have a text file (example below) that has multiple records with the same format but not always the same number of lines. Each record is separated by the line that starts with “Examining file” as in below example. If you notice, the 3D Val is not there for the second record. How do I report t

[Tutor] Working with output of a subprocess

2013-01-11 Thread 3n2 Solutions
Hello, Need some help with working with a text file. Is it possible to get the values associated with each of the parameter in the below text file format? For example: 1. How can I check what the Min and Max values are? 2. How to check the second column value associated with "epoch2"? Your help