start external program from python

Bjorn bjornjobb at
Mon Oct 12 12:15:30 CEST 2009

Hi, I woul like to start a program from within python (under linux):
This works fine:

import os
path = 'tclsh AppMain.tcl'

The file AppMain.tcl is the executable and the file is a
textfile in the same directory.
The text file gets opened in the app in the correct way.

I wonder if I could pass information from the clipboard to the
AppMain.tcl instead of the file ?
I use wxPython.
any comment is appreciated!

More information about the Python-list mailing list