Suppose my_folder contains my_script and my_program. my_script tries to run ./my_program -myoptions. It works when I cd into the directory, but not when I double click on it.
Here is the output:
CasebashMac:~ chris$ /Users/chris/Programs/synergy-1.3.1\ 2/work_comp_server ; exit;
/Users/chris/Programs/synergy-1.3.1 2/work_comp_server: line 1: ./synergys: No such file or directory
logout
How can I fix this?