Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nevafuse

macrumors newbie
Original poster
May 18, 2009
1
0
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. 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 myapp.app" 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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.