In a Karaf console command is it possible to determine whether the console 
session is
(a) in Karaf in the foreground (where a Ctrl-D shuts down Karaf), or
(b) an ssh session attached to a Karaf process (where a Ctrl-D merely exits the 
ssh session)?

Context: I'm having my own quit command. It should only do "shutdown" when 
running in mode (a).

Thanks!
-Max

Reply via email to