# File lib/pry-remote-em/server.rb, line 261 def receive_shell_cmd(cmd) return if require_auth unless @allow_shell_cmds puts "\033[1mshell commands are not allowed by this server\033[0m" @log.error("refused to execute shell command '#{cmd}' for #{@user} (#{peer_ip}:#{peer_port})") send_shell_result(-1) send_last_prompt else @log.warn("executing shell command '#{cmd}' for #{@user} (#{peer_ip}:#{peer_port})") @shell_cmd = EM.popen3(cmd, ShellCmd, self) end end