OSDN Git Service
(root)
/
rec10
/
rec10-git.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
implement move after process.
[rec10/rec10-git.git]
/
rec10
/
trunk
/
src
/
epgrefresh.py
1
#!/usr/bin/python
2
# coding: UTF-8
3
# Rec10 TS Recording Tools
4
# Copyright (C) 2009 Yukikaze
5
import os
6
import sys
7
import time
8
9
import chdb
10
import epgdb
11
12
update = chdb.update()
13
print "番組表更新処理"
14
print update
15
if len(update) > 0:
16
print "番組表を更新"
17
print update
18
pid = os.fork()
19
if pid > 0:#親プロセスの場合
20
""
21
else:#子プロセスの場合 アップデートを行って終了
22
for bctype in update:
23
time.sleep(1)
24
print bctype
25
epgdb.updatebc(bctype)
26
sys.exit(0)