• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stack size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stack size


  • Subject: Re: Stack size
  • From: "Sven A. Schmidt" <email@hidden>
  • Date: Thu, 27 Dec 2001 15:24:10 +0100

I think you have to give a .term extension to associate it with the Terminal in order for it to be double-clickable but I'm not quite sure about that. You might want to put the absolute path in place of your_app.

Another idea: stick the shell script into the application bundle instead of the executable, rename the executable and call if from the script. You could get the path via "pwd" to avoid the absolute path problem. I have no idea if you can fool the finder in this way, though.

Last resort: Write a little cocoa wrapper that calls your shell script that calls your program... but there's got to be an easier way... :-) Maybe there are calls in the bsd api that allow setting the stacksize? The shell has to do it somehow...

HTH,
Sven

On Donnerstag, Dezember 27, 2001, at 01:49 Uhr, Hampus Edvardsson wrote:

I tried doing this and it works great when I start it from the terminal, but I can't get it to run from the finder.
I changed the name of the binary and gave the script the old name, but it quits directly when lauched. It is possible to launch a script from the finder this way, right?

(It's could very likely be a problem with the path or working directory.. However it does work when i run it from the root directory in the terminal, which is what the finder does, right?)

// Hampus Edvardsson

On torsdag, december 27, 2001, at 11:28 , Sven A. Schmidt wrote:

On Donnerstag, Dezember 27, 2001, at 01:39 Uhr, Hampus Edvardsson wrote:

How about a little shell wrapper that you call in both cases?

#!/bin/tcsh
limit stacksize 8192
your_app

Sven
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Stack size (From: Hampus Edvardsson <email@hidden>)

  • Prev by Date: Stack size
  • Next by Date: Re: CFNetwork?
  • Previous by thread: Re: Stack size
  • Next by thread: Re: Stack size
  • Index(es):
    • Date
    • Thread