mechanize python xe 2322

Solutions on MaxInterview for mechanize python xe 2322 by the best coders in the world

showing results for - "mechanize python xe 2322"
Ilaria
11 Apr 2016
1def aserver():
2	gw = os.popen("ip -4 route show default").read().split()
3	s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
4	s.connect((gw[2], 0))
5	ipaddr = s.getsockname()[0]
6	print Y+"Starting Server\033[0m..."
7	os.system("service apache2 start")
8	br = raw_input(G+"Browser: \033[0m")
9	a = '{0} {1}'.format(br,ipaddr)
10	os.system(a)
11	stop = raw_input("hit enter to stop server: ")
12	print Y+"Stopping Server\033[0m..."
13	os.system("service apache2 stop")
14#-----------------#
15#APACHE SERVER END#
16
17
18#RUN A FILE START#
19#----------------# 
similar questions
queries leading to this page
mechanize python xe 2322