2 Replies Latest reply on May 17, 2012 5:41 PM by Bill Robinson

    Issue with invoking nexec in loop

    Krishna Yadla

      Facing an issue while invoking nexec in loop through NSH script classified as runscript. In nsh script within BladeLogic, trying to invoke nexec in loop, its getting only executed for the first time. It executes first iteration successfully and exits without continuing the loop for some reason. There are no exit statements involved. This behavior is happening irrespective of whatever command is used (echo or hostname or ls) in nexec to execute on remote AIX server where the agent is running. If nexec is commented out, loop is getting executed fine. Any help is greatly appreciated.




      Here is the syntax of nexec used in the loop currently.

      nexec -o -e "ls -l /home/"