We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 097b7b9 + 78eb720 commit 9922358Copy full SHA for 9922358
scripts/smart_dispatch.py
@@ -64,6 +64,9 @@ def main():
64
65
# Add redirect for output and error logs
66
for i, command in enumerate(commands):
67
+ # Change directory before executing command
68
+ commands[i] = 'cd "{cwd}"; '.format(cwd=os.getcwd()) + commands[i]
69
+ # Log command's output and command's error
70
log_filename = os.path.join(path_job_logs, smartdispatch.generate_name_from_command(command, max_length_arg=30))
71
commands[i] += ' 1>> "{output_log}"'.format(output_log=log_filename + ".o")
72
commands[i] += ' 2>> "{error_log}"'.format(error_log=log_filename + ".e")
0 commit comments