- Timestamp:
- 2009-02-18T00:30:13Z (16 years ago)
- Branches:
- master
- Children:
- 8ee6def
- Parents:
- 3512d0b
- Location:
- skype
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skyped.py
r3512d0b rbcdc24b 3 3 # skyped.py 4 4 # 5 # Copyright (c) 2007, 2008 by Miklos Vajna <vmiklos@frugalware.org>5 # Copyright (c) 2007, 2008, 2009 by Miklos Vajna <vmiklos@frugalware.org> 6 6 # 7 7 # This program is free software; you can redistribute it and/or modify … … 144 144 if options.debug: 145 145 print msg 146 if options.log: 147 sock = open(options.log, "a") 148 sock.write("%s\n" % msg) 149 sock.close() 146 150 147 151 class SkypeApi: … … 207 211 self.help = False 208 212 self.host = "0.0.0.0" 213 self.log = None 209 214 self.port = None 210 215 self.version = False … … 226 231 -h --help this help 227 232 -H --host set the tcp host (default: %s) 233 -l --log set the log file in background mode (default: none) 228 234 -n --nofork don't run as daemon in the background 229 235 -p --port set the tcp port (default: %s) … … 234 240 options = Options() 235 241 try: 236 opts, args = getopt.getopt(sys.argv[1:], "c:dhH: np:v", ["config=", "daemon", "help", "host=", "nofork", "port=", "version"])242 opts, args = getopt.getopt(sys.argv[1:], "c:dhH:l:np:v", ["config=", "daemon", "help", "host=", "log=", "nofork", "port=", "version"]) 237 243 except getopt.GetoptError: 238 244 options.usage(1) … … 246 252 elif opt in ("-H", "--host"): 247 253 options.host = arg 254 elif opt in ("-l", "--log"): 255 options.log = arg 248 256 elif opt in ("-n", "--nofork"): 249 257 options.daemon = False -
skype/t/livetest-bitlbee.sh
r3512d0b rbcdc24b 33 33 34 34 # Run skyped 35 python ../skyped.py -c skyped.conf > skypedtest.pid35 python ../skyped.py -c skyped.conf -l skypedtest.log > skypedtest.pid 36 36 sleep 2 37 37
Note: See TracChangeset
for help on using the changeset viewer.