I had a script file which I had written on my Windows machine, which I wanted to execute on the build server. However, the build server couldn’t execute it because it didn’t have execute permissions by default, and I couldn’t change this on my windows machine.
So, what I had to do was check out the file on my linux box, using a clientspec I’d created, and edit the permissions like this:
p4 -c my_clientspec_test edit -t text+x jamestest.sh
my_clientspec_test is the name of the clientspec I used
jamestest.sh is my script file, obviously.
-t tells the system to open the file as a particular type – in this case we pass text+x, which means text, with the “executable” modifier.
Of course, if your file isn’t text type you need to change the command to suit, i.e. -t binary+x if it’s a binary.