Thanks Danny, i took notes from your messages, and i will test them when i get into the office tomorrow. i hadn't used the & in the os.system line. i guess it works kinda like the bash & ? (although, i am even less familliar with that) So, i will try out your suggestions in the morning, and let you know how it went. thanks very much for your help. shawn
On Wed, 2005-11-09 at 23:33 +0100, dannym wrote: > Hi, > > Am Mittwoch, den 09.11.2005, 13:25 -0600 schrieb nephish: > > thanks gents, > > i am using linux. and i have been trying to get the spawn command to > > work. > > in the docs, i dont understand what is ment by args, i dont really have > > any args to pass. > > Most programs expect their own full path as the first argument (arg 0). > > > i tried like this > > os.spawnl(os.P_NOWAIT, '/path/to/program.py') > > os.spawnl(os.P_NOWAIT, '/path/to/program.py', '/path/to/program.py') > > Note that in order to be able to run python programs like that, they > have to: > - be executable (have executable flag) > - contain a shebang in the first line (#!/usr/bin env python) > > > and it doesnt act like anything is actually happening. > > > > the program does not really exit. i just close its window. > > should i change that? > > i dont know where to put the sys.exit. > > What do you mean ? Put it where you want to quit. > > > thanks for your help guys. > > > > i have thought about running it as a thread, but the thread needs to die > > after i close the window. > > umm. What are you trying to do ? > > > > > thanks again, > > shawn > > cheers, > Danny > > _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
