X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=2.1 required=5.0 	tests=AWL,BAYES_00,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <23408052.post@talk.nabble.com>
Date: Wed, 6 May 2009 08:01:26 -0700 (PDT)
From: mcbenus <bkbkesh@yahoo.com>
To: cygwin@cygwin.com
Subject: Pyhton script to call another program
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


Hi,

I am trying to write a simple python script to manipulate files and call
other programs.  I have a program installed (rocs) which I run using cygwin
(but is not in python).  How can I run a python script and then call the
other program? 

For example:
Python Code  # this line opens a file
Python Code  # this line splits the file into 4 different files
rocs  # this line calls the program 'rocs' to run on the newly formed files
Python Code # this line renames rocs output files and saves them in the
right place. 

I am relatively new to python and don't know a lot about cygwin.  Please
remember that if you try to answer me :) Thanks!
-- 
View this message in context: http://www.nabble.com/Pyhton-script-to-call-another-program-tp23408052p23408052.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

