What I would like to do is, I think, self-explanatory in the two lines of code: from a python script I open a terminal (sakura) which in turn launches mysql which should run the test batch below
def terminal(self):
self.process = QProcess()
self.process.start("/usr/bin/sakura -e mysql -pxxxxxx source studio.bat")
This is the batch
USE w_office;
SELECT * FROM `w_data` AS ' ';
SELECT * FROM `w_hour` AS ' ';
If I run only part of the command I enter mysql without problems. The problem is that I can’t get it to run the batch. Or if he does it, sakura closes so quickly I can’t see anything
self.process.start("/usr/bin/sakura -e mysql -pfidonet9969")