Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
use readline functions only in interactive mode #331
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wookietreiber commentedMay 10, 2017
The readline functions should only be used in interactive mode.
When I'm using mothur on an HPC cluster in batch mode the mothur output is captured in a log file automatically by the job management system, e.g. SGE or SLURM. These logs contain the readline escape characters, e.g. to clear the screen, which makes the log in part unreadable. Also, when these batch mode mothur jobs are executed on non-interactive compute nodes, there is no TERM variable. The log then shows:
TERM environment variable not set. This happens, when readline functions are used in a non-interactive environment and this should be avoided.