0

I'm trying to figure out how to open a terminal in linux, when I'm going to run my Pythoncode in Eclipse.

So I got the idea to use os.popen("gksu -S command,"w"). But for this way I need to enter my password. Can I add my password anywhere in the script or into the os.open command?

Thanks for the help. :)

Here is my Code:

import os
class Init(object):

   def prepareVM(self):
       os.popen("gksu -S virtualbox,"w")

   prepareVM(super)
user2314737
  • 27,088
  • 20
  • 102
  • 114
Ceeya
  • 65
  • 1
  • 10

0 Answers0