python xauth

  • Thread starter kracekumar ramaraju
  • Start date
K

kracekumar ramaraju

I am looking to use xauth in python?It is for my command line process,I would like to have few examples and resources.
 
C

Cousin Stanley

kracekumar said:
I am looking to use xauth in python ?

It is for my command line process,
I would like to have few examples
and resources.

A simple example ....
import subprocess as SP

proc = [ 'xauth' , 'list' , ':0' ]

pipe = SP.Popen( proc , stdout = SP.PIPE )

data = pipe.stdout.readline()

print '\n' , data

em1dsq/unix:0 MIT-MAGIC-COOKIE-1 10a533afab15a57c8704a16d1dc5bb12
 
I

Ian Kelly

I am looking to use xauth in python?It is for my command line process,I would like to have few examples and resources.

First, by "xauth" do you mean the X11 authorization scheme, or the
"extended authentication" (xauth.org) scheme? The name is
unfortunately overloaded.

Second, have you tried googling for "python xauth"?

Cheers,
Ian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,881
Members
47,418
Latest member
NoellaXku

Latest Threads

Top