Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from subprocess import Popen,PIPE
- command='who'
- command ='"'+command+' '+';read -n1" '
- subitem = Popen(['gnome-terminal','--disable-factory','-x','bash','-c',command],stdin =PIPE)
- subitem.communicate(input='your command')
Add Comment
Please, Sign In to add comment