subprocess - Run python script in different shell levels -


//starting perl script

os.system('./start.pl')

//make command used , o/p redirected file

os.system('make > file')

i beginner in python.

whenever run perl script(start.pl), new subprocess created , shell enters new subshell , rest lines in python script goes un-entered.

kindly me run other commands after shell enters new sub shell.

automating interactive applications pure python pretty difficult , requires lot of knowledge sockets, select, tty. make life easier, recommend using pexpect kind of task.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -