This is an automated email from the ASF dual-hosted git repository. sorabh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/drill.git
commit d05ce7fdf095976a98e66e32d7c27ee016aaf9fc Author: kr-arjun <[email protected]> AuthorDate: Fri Jun 1 00:09:03 2018 -0700 DRILL-5700: Adding nohup support for Sqlline script closes #1300 --- distribution/src/resources/sqlline | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/distribution/src/resources/sqlline b/distribution/src/resources/sqlline index 1473ef0..3f982bb 100644 --- a/distribution/src/resources/sqlline +++ b/distribution/src/resources/sqlline @@ -76,6 +76,11 @@ if ! $is_cygwin; then DRILL_SHELL_OPTS="$DRILL_SHELL_OPTS --color=true" fi +# To add nohup support for SQLline script +if [[ ( ! $(ps -o stat= -p $$) =~ "+" ) && ! ( -p /dev/stdin ) ]]; then + export SQLLINE_JAVA_OPTS="$SQLLINE_JAVA_OPTS -Djline.terminal=jline.UnsupportedTerminal" +fi + SHELL_OPTS="$DRILL_SHELL_JAVA_OPTS $SQLLINE_JAVA_OPTS $DRILL_SHELL_LOG_OPTS $CLIENT_GC_OPTS" CMD="$JAVA $SHELL_OPTS -cp $CP sqlline.SqlLine -d org.apache.drill.jdbc.Driver --maxWidth=10000" -- To stop receiving notification emails like this one, please contact [email protected].
