| Server IP : 82.208.35.60 / Your IP : 216.73.216.168 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/sysutils/webmin/files/ |
Upload File : |
--- ajaxterm/ajaxterm/ajaxterm.py.orig 2015-03-13 23:52:34 UTC
+++ ajaxterm/ajaxterm/ajaxterm.py
@@ -394,7 +394,7 @@
if self.cmd:
cmd=['/bin/sh','-c',self.cmd]
elif os.getuid()==0:
- cmd=['/bin/login']
+ cmd=['/usr/bin/login']
else:
sys.stdout.write("Login: ")
login=sys.stdin.readline().strip()
@@ -549,16 +549,16 @@
file(o.pidfile,'w+').write(str(pid)+'\n')
except:
pass
- print 'AjaxTerm at http://localhost:%s/ pid: %d' % (o.port,pid)
+ print ('AjaxTerm at http://localhost:%s/ pid: %d' % (o.port,pid))
sys.exit(0)
else:
- print 'AjaxTerm at http://localhost:%s/' % o.port
+ print ('AjaxTerm at http://localhost:%s/' % o.port)
at=AjaxTerm(o.cmd,o.index_file)
# f=lambda:os.system('firefox http://localhost:%s/&'%o.port)
# qweb.qweb_wsgi_autorun(at,ip='localhost',port=int(o.port),threaded=0,log=o.log,callback_ready=None)
try:
qweb.QWebWSGIServer(at,ip='localhost',port=int(o.port),threaded=0,log=o.log).serve_forever()
- except KeyboardInterrupt,e:
+ except KeyboardInterrupt as e:
sys.excepthook(*sys.exc_info())
at.multi.die()