Using python to runother programs

Terry Reedy tjreedy at udel.edu
Sat Jul 23 01:54:03 EDT 2005


<adityabhambri at yahoo.com> wrote in message 
news:1122054694.450950.216900 at g44g2000cwa.googlegroups.com...
> HI guys,
>  I am trying to automate some project work which the accounting dept
> of the company uses. They have to go through multiple steps to achieve
> the final goal. Is there some way that I can use python to automate
> these manual steps. I can give you an example.
>
> 1. run the crystal report using some ***.excel file
>
> 2. Store the output as *.txt file.
>
> 3. use accounting software and use the *.txt file (this step can be
> excluded)
>
> I don't know how to use python to run the crystal report and save the
> output as an txt file using python scripts. Is this even possible?

Maybe.  Details depend on your OS, which you neglected to mention ;-)
Lookup os.system.  There may also be a new module in 2.4 that is relevant 
(I forget name).   If you are on Windows, PyWin gives you more options.

tjr






More information about the Python-list mailing list