Hi,

I try to create a directory that includes all my scripts or executable.
So, I can use WORKDIR in PROCESS START SHELL COMMAND without defining
absolute path for each script or executable. You can see the script exists.

[r...@auto samples]#  staf 192.168.x.y PROCESS START SHELL COMMAND
"vmInfo.sh" WAIT STDERRTOSTDOUT RETURNSTDOUT RETURNFILE
/root/STAF341/vmInfo.sh WORKDIR /root/STAF341/
Response
--------
{
  Return Code: 127
  Key        : <None>
  Files      : [
    {
      Return Code: 0
      Data       : sh: vmInfo.sh: command not found

    }
    {
      Return Code: 0
      Data       : #!/bin/sh

for i in `vmware-cmd -l`
do
        echo "VMX: $i"
        echo "VmPowerStatus: "
        vmware-cmd $i getstate
        echo "VmOs: "
        vmware-cmd $i getconfig guestOs
        echo "VmIp: ";
        vmware-cmd $i getguestinfo ip;
        echo ""
done

    }
  ]
}
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to