Python passing data - new terminal

Permabanned
Joined
26 Jun 2010
Posts
77
I'm stuck.

I have two scripts, i need a line(s) of code in script one, that when script one is finished it automatically run script 2 in a new terminal.

I've found:

xterm -e "command"

Which doesn't really work, it runs it in an xterm windows - not a gnome terminal and it also doesn't finish script one, it hangs of sorts.

I also heard of Pexpect but i have no idea how to use it.

So what i need:

Script one is finishing, it then starts script 2 but script 1 then needs to keep going.

Both are python scripts.

Any ideas on this? :confused:
 
Last edited:
Just remove the myprocess.wait() line above then, this will cause script1 to execute script2 and forget about it, i.e continue its execution. Script2 will keep running even if script1 terminates.

That's exactly what i'm after.

I shall try this later when i'm back on my main machine.

Thank you. :p
 
That doesn't seem to work, i also forgot to mention i need the second terminal to stay open, not run in the background or open then close.
 
Back
Top Bottom