1

How can I start a process to run in a different console window using Python in Linux, something similar to this in windows(using start):

import os
os.system('start dir c:\*.* /s') 
asked Mar 29, 2011 at 17:07

1 Answer 1

2

xterm -e should do the trick for you.

-e program [ arguments ... ]

This option specifies the program (and its command line arguments) to be run in the xterm window. It also sets the window title and icon name to be the basename of the program being executed if neither -T nor -n are given on the command line. This must be the last option on the command line.

E.g.

import os
os.system("xterm -e 'your command'")
answered Mar 29, 2011 at 17:13
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.