access bash from C program?

Thomas Charron twaffle at gmail.com
Mon Jun 2 11:45:18 EDT 2008


On 6/2/08, Labitt, Bruce <labittb1 at tycoelectronics.com> wrote:
> I've been scratching my brains here a bit.  Is there an easy way to get
> access to the shell (bash) from within a C program?  I left my K&R at
> home...
> My googling has not particularly enlightened me, either...
> I'd like to run the equivalent of the command "$ ulimit -s hard"
> I need to do this because I need much more stack than the terminal
> window ordinarily allows.  (Can't run FFTs > 256K without above
> command.)

  See the ulimit() function?  Or getrlimit() and setrlimit()?

-- 
-- Thomas


More information about the gnhlug-discuss mailing list