6 Replies Latest reply on Jul 9, 2015 7:51 AM by Yanick Girouard Branched from an earlier discussion.

    Re: nexec is not working in NSH Script Job

    Atul Matkar

      HOSTNAME=${NSH_RUNCMD_HOST}

      nexec $HOSTNAME Memory=`cat /proc/meminfo | head -1`

      nexec echo $Memory

      for HOST in $HOSTNAME

      do

        blcli_execute Server printPropertyValue $HOSTNAME Name

        blcli_storeenv HostName

        blcli_execute Email sendMail someemail@id.com first.last@email.com "SERVER" "Server Details are as below:

        Server Name: $HostName

      done


      it does not print Memory where as it prints Hostname in email. Any clue ?