8 Replies Latest reply on Oct 30, 2014 3:49 PM by richard mcleod

    disconnect command usage

    richard mcleod

      Is it still considered best practice to use


      disconnect $host


      in NSH scripts where nexec $host or //$host is used? We're on 8.5.01 Patch 2


      I ran into an issue today where we were using nexec $host somecommand and the disconnect $host caused the script to exit with the error "Not Connected to <hostname>"


      Is there anyway we can not have this register as an error? should I just dump the error to /dev/null?


      disconnect $host 2>/dev/null  ??