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
Post a Comment