For simplicity sake, I'm having a problem opening up a unix executable from another unix executable both perl scripts on OSX.
I'm not particular familiar with Macs, but I have my hands tied. I have a .app folder in the Applications folder that links to my first unix executable (perl) in the contents/macos folder. This works fine. In the program, it launches another unix executable (perl) and closes itself. The second program runs for a little bit and then tries to re-open that original program in the contents/macos folder (with shell cmd `/application/myapp.app/contents/macos/myapp`). As soon as the original is re-opened, it gives me this error...
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
I tried a few experiments to get around this, but all have failed. One of which was to use the `open /applications/myapp.app` (-a and -n flags also tried) shell command which doesn't re-open the application at all (no error or anything).
If I run the first unix exec in the contents/macos by double-clicking the actual file (instead of double-clicking the .app folder in Applications) everything works fine. But unfortunately this is impractical for what I am trying to do.
Thanks in advanced for any help.