Thank you Sam, I've checked the manual and try to change any port include rfbport or http port, it doesn't work. But finally, I find my way, I use pexpect to involve the command. It works.
Thank you everyone! Bill On Nov 10, 4:23 pm, Sam Lai <samuel....@gmail.com> wrote: > Why can't you tell vncserver to listen on a different port? > > the vncserver script passes any unknown args to Xvnc, so you can use > the argument for Xvnc to change the port (-rfbport port_number). > > man vncserver:http://www.realvnc.com/products/free/4.1/man/vncserver.html > man Xvnc:http://www.realvnc.com/products/free/4.1/man/Xvnc.html > > On 10 November 2010 06:33, Bill <billchen...@gmail.com> wrote: > > > > > > > > > Hi all, > > > I met a problem, I can use python to execute the the command > > "vncserver " to start vncserver use subprocess, > > like this: > > process = subprocess.Popen('vncserver' , shell=True) > > > but when I write this code to views.py it didn't work as I hope. > > The Xvnc process listened on the port which Django used. > > > For example, django listen on tcp port 8000, and the Xvnc also listen > > on tcp port 8000. > > It's wired. > > > Is there any way to involve the vncserver? > > > Regards, > > Bill > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.