Can't select script file from KM

I'm writing a macro that includes the "execute a shell script" command. But when I go to pick the shell script from the file picker, the files are grayed out and I can't select them. I put them in my local home folder. Is this a permissions issue?

It might be ... try putting them in /tmp (just as a test) to see.

-rob.

Thanks, @griffman. Did I do this right? Looks like no change.

OK, so it's not a permissions issue on the particular folder. What's the ownership of those files, and I assume both are set to executable?

-rob.

1 Like

I hadn't made them executable. (Didn't know enough about the shell to understand that was necessary even if the script was run through KM.) Thank you!

Yea; if you put the script itself directly in the Shell Script action, you don't need to worry about executable state. But if you're running a script file, KM will basically just tell the shell to run it, so it needs to be executable.

-rob.

1 Like