schrodinger.job.jobwriter module

Functions for writing job command lists into shell scripts.

schrodinger.job.jobwriter.write_job_cmd(cmdlist, sh_filename, job_dir)

Write a shell script that can be used to run the given cmdlist.

Parameters
  • cmdlist (list[str]) – The command the script should run.

  • sh_filename (sh) – The name of the file the script should be written to

  • job_dir (str) – The desired job directory to be used for the command

schrodinger.job.jobwriter.cmdlist_to_cmd(cmdlist)

Converts a command list to a command string. Don’t do this if you can possibly avoid it.

Parameters

cmdlist (list) – a list of commands

Returns

str

schrodinger.job.jobwriter.set_sh_file_flags(filename)