access bash from C program?

Labitt, Bruce labittb1 at tycoelectronics.com
Mon Jun 2 17:40:03 EDT 2008


Yes, that is what I wanted to do.  I ran out of stack when doing large
FFTs.
-Bruce

-----Original Message-----
From: Thomas Charron [mailto:twaffle at gmail.com] 
Sent: Monday, June 02, 2008 5:39 PM
To: Labitt, Bruce
Cc: Greater NH Linux User Group
Subject: Re: access bash from C program?

On Mon, Jun 2, 2008 at 11:19 AM, 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.)

  Bruce, you wanted to increase the *stack* size, right?

-- 
-- Thomas



More information about the gnhlug-discuss mailing list