mjanulis

reading output of comman executed by nexec

Discussion created by mjanulis on Jan 6, 2011
Latest reply on Feb 10, 2012 by richard.hirst

Hi,

 

I am executing a command remotely using below code and expect to read output of executed command.  How can I extract output of executed command in profile YYY in the variable so I can use this variable in the script?  Thanks.

 

   probename="nexec"
   probeaddr="***"
   args = pds.create()
   pds.putString (args,"profile","YYY")
   reply,rc = nimbus.request(probeaddr,"run_profile",args)
   pds.delete(args)
   if rc ~= 0 then
      printf("Unable to query the '%s' probe",probename)
      exit(1)
   end

Outcomes