# File lib/smart_proxy_discovery_image/power_api.rb, line 36
    def run_after_response(seconds, *command)
      logger.debug "BMC shell execution scheduled in #{seconds} seconds"
      Thread.start do
        begin
          sleep seconds
          logger.debug "BMC shell executing: #{command.inspect}"
          if (sudo = which('sudo'))
            status = system(sudo, *command)
          else
            logger.warn "sudo binary was not found"
          end
          # only report errors
          logger.warn "The attempted command failed with code #{$?.exitstatus}" unless status
        rescue Exception => e
          logger.error "Error during command execution: #{e}"
        end
      end
    end