I need to run a couple of shell commands on the machine that serves up our tests, to get the updated scripts from source control:
put "p4 sync -f" into theCommand put shell(theCommand) into someStuff put the result into error if error is not 0 put "Error Code:"&&error put someStuff end if
Error Code: 1 someStuff (empty)
The exact same command (cut and pasted) into Terminal works just fine. I’m surprised that I don’t get an error back from the p4 command, it’s pretty verbose in telling me when something didn’t work. It shows up in the console, telling me that the host is unknown, which suggests that it is not picking up ENV from the system.
Is there a way to get shell() to pick up the ENV? I can set up a config file and pipe in the credentials, but I’ve already got the system set up, so I’m hoping to avoid that.
Thanks for any help!