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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.