Tag: call

Kohana, PHP

Creating your own Model User

If you are trying to create your own Model User and you receive the message bellow: ErrorException [ Fatal Error ]: Call to undefined method Model_User::unique_key()ErrorException [ Fatal Error ]: Call to undefined method Model_User::unique_key()ErrorException [ Fatal Error ]: Call to undefined method Model_User::unique_key()ErrorException [ Fatal Error ]: Call to undefined method Model_User::unique_key() then you …

Python

Traceroute system call in python

#!/usr/bin/env python   from subprocess import Popen, PIPE import sys   def tracer(host=None): p = Popen([’traceroute’, host], stdout=PIPE)   while True: try: line = p.stdout.readline() if not line: break print (line.rstrip()) except: break   def main(argv=None): tracer(sys.argv[1])   if __name__ == "__main__": sys.exit(main())#!/usr/bin/env python from subprocess import Popen, PIPE import sys def tracer(host=None): p = …