Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rm1k3 committed Mar 26, 2014
1 parent 44eb1d7 commit 3506c46
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 25 deletions.
44 changes: 20 additions & 24 deletions process.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,26 @@

dn="enwikipediaorg_w-%s-wikidump/" % ts
target= "./done/%s" % dn
if not(os.path.exists(target)):
cmd = "rm -rf ./%s" % pn

print cmd
stat = os.system(cmd)
print stat
if (stat >0) :
sys.exit(stat)

cmd = "rm -rf ./%s" % zn
print cmd
stat = os.system(cmd)
print stat
if (stat >0) :
sys.exit(stat)


else:
cmd = "rm -rf ./%s" % dn
print cmd
stat = os.system(cmd)
print stat
if (stat >0) :
sys.exit(stat)
#if not(os.path.exists(target)):
#cmd = "rm -rf ./%s" % pn
# print cmd
# stat = os.system(cmd)
# print stat
# if (stat >0) :
# sys.exit(stat)
#cmd = "rm -rf ./%s" % zn
#print cmd
#stat = os.system(cmd)
#print stat
#if (stat >0) :
# sys.exit(stat)
#else:
# cmd = "rm -rf ./%s" % dn
# print cmd
# stat = os.system(cmd)
# print stat
# if (stat >0) :
# sys.exit(stat)


else:
Expand Down
2 changes: 1 addition & 1 deletion runexport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ echo going to run process
cd ${HOME}/experiments/wikiteam/data
#pwd
python $HOME/experiments/wikiteam/process.py
rm -rf ${HOME}/experiments/wikiteam/data/wt*
#rm -rf ${HOME}/experiments/wikiteam/data/wt*

0 comments on commit 3506c46

Please sign in to comment.