Guest User

Untitled

a guest
Dec 7th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. from subprocess import Popen,PIPE
  2. command='who'
  3. command ='"'+command+' '+';read -n1" '
  4. subitem = Popen(['gnome-terminal','--disable-factory','-x','bash','-c',command],stdin =PIPE)
  5. subitem.communicate(input='your command')
Add Comment
Please, Sign In to add comment