I have created a script that is to be executed on the Mac on which EggPlant is running. The script is restartIMS.sh shown in this listing…
pws-s:Scripts hurricane$ ls -l
-rws–x--x@ 1 hurricane staff 4570 14 Jan 10:18 restartIMS.sh
-rws–x--x 1 root staff 4570 14 Jan 10:24 restartIMS2.sh
-rwxrwxrwx@ 1 hurricane staff 4570 14 Jan 12:21 restartIMS3.sh
Actually I edit and make changes to restartIMS.sh, and copy to the files; restartIMS2.sh and restartIMS3.sh, to make changes to permissions, etc.
From the command line if I issue the commands…
pws-s:Scripts hurricane$ sudo chmod 4711 ./restartIMS2.shPassword:
pws-s:Scripts hurricane$ sudo chown root ./restartIMS2.sh
pws-s:Scripts hurricane$ sudo /Users/hurricane/Desktop/Eggplant_Testing/CommonUtil.suite/Scripts/restartIMS2.sh
…I successfully execute the script which runs a number rsh commands to restart a UNIX system and places it in a known state (in preparation for GUI testing).
Ideally we want to be able to execute this same script from within SenseTalk. So in the run window I issue the command…
…I get the return code “result: 1”, which is a generic error and completely uninformative. I am hoping that someone here can give me a clue for the next step in dealing with this issue. The script works when run from the shell prompt, but not from within EggPlant.