[ https://issues.apache.org/jira/browse/HIVE-6758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14169465#comment-14169465 ]
Brock Noland commented on HIVE-6758: ------------------------------------ We can use this shell code to detect if we are in the background: {noformat} case $(ps -o stat= -p $$) in *+*) echo "Running in foreground" ;; *) echo "Running in background" ;; esac {noformat} and then set the property appropriately. > Beeline doesn't work with -e option when started in background > -------------------------------------------------------------- > > Key: HIVE-6758 > URL: https://issues.apache.org/jira/browse/HIVE-6758 > Project: Hive > Issue Type: Improvement > Components: CLI > Affects Versions: 0.11.0 > Reporter: Johndee Burks > Assignee: Xuefu Zhang > > In hive CLI you could easily integrate its use into a script and back ground > the process like this: > hive -e "some query" & > Beeline does not run when you do the same even with the -f switch. -- This message was sent by Atlassian JIRA (v6.3.4#6332)