Skip to content
Browse files

Added a stderr to subprocess.call for update_index in srchupdate.py

  • Loading branch information...
1 parent bea6ea6 commit ad54546b13a6c47ee172cc3c1f74148905bcfdc0 @mattdeboard committed May 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 srchupdate.py
View
4 srchupdate.py
@@ -16,10 +16,10 @@ def update():
with open('/a/mattdeboard.net/src/index.log') as f:
try:
mattwhoosh = subprocess.call(['sudo', 'chown', '-R',
- 'matt:matt', whoosh_dir], stderr=f)
+ 'matt:matt', whoosh_dir])
update_index = subprocess.call([domain_dir+'bin/python',
appdir+'manage.py', 'update_index'],
- stdout=f)
+ stderr=f)
apachewhsh = subprocess.call(['sudo', 'chown', '-R',
'www-data:www-data', whoosh_dir])
apachereload = subprocess.call(['sudo',

0 comments on commit ad54546

Please sign in to comment.
Something went wrong with that request. Please try again.