[Swift-commit] r7859 - SwiftApps/swift-galaxy/swift
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Mon May 12 11:16:18 CDT 2014
Author: ketan
Date: 2014-05-12 11:16:17 -0500 (Mon, 12 May 2014)
New Revision: 7859
Modified:
SwiftApps/swift-galaxy/swift/swiftforeach.py
Log:
Set stdin as /dev/null to the input to the subprocess call of turbine
Modified: SwiftApps/swift-galaxy/swift/swiftforeach.py
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeach.py 2014-05-12 16:07:35 UTC (rev 7858)
+++ SwiftApps/swift-galaxy/swift/swiftforeach.py 2014-05-12 16:16:17 UTC (rev 7859)
@@ -217,8 +217,8 @@
exitcode=subprocess.check_call([stc, "-j", "/homes/ketan/jdk1.7.0_07/bin/java", wdir+"/script.swift"], stderr=errfile)
if exitcode == 0:
- with open(logfile, "wb") as errfile:
- exitcode=subprocess.check_call([turbine, "-n", str(n), wdir+"/script.tcl"], stderr=errfile)
+ with open(logfile, "wb") as errfile, open("/dev/null", "r") as infile:
+ exitcode=subprocess.check_call([turbine, "-n", str(n), wdir+"/script.tcl"], stdin=infile, stderr=errfile)
elif sites == "Vesta":
More information about the Swift-commit
mailing list