Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
proost committed Apr 27, 2017
1 parent a2a0576 commit aa988de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blast_on_cluster.py
Expand Up @@ -61,7 +61,7 @@ def execute_command_on_cluster(submission_script, cmd, threads=1):
submission_script]

print(qsub_cmd)
# subprocess.call(qsub_cmd)
subprocess.call(qsub_cmd)


def run():
Expand All @@ -73,10 +73,12 @@ def run():

print("Waiting for command to execute...")

for line in sys.stdin():
for line in sys.stdin:
if check_line(line):
print("\n\tCommand found! Executing")
execute_command_on_cluster(submission_script, line.strip())
else:
print(line, end='')

if __name__ == "__main__":
run()

0 comments on commit aa988de

Please sign in to comment.