Well u can set the limit/ulimit itself in your shell that invokes it.

I would doubt if you script consumes so much memory - check ur script if not 
write up a C program that invokes the script and sets the memory limits.

Regards,
Prakash




________________________________
 From: km <[email protected]>
To: ILUG-C <[email protected]> 
Sent: Sunday, 29 September 2013 12:13 AM
Subject: Re: [Ilugc] limit a /c++ executable memory usage
 

well but the probem is that the moment my program crosses the memory limit
set by ulimit, the program gets killed. :-(

Krishna




On Sat, Sep 28, 2013 at 11:40 PM, Arun Khan <[email protected]> wrote:

> On Sat, Sep 28, 2013 at 11:33 PM, km <[email protected]> wrote:
>
> > Dear all,
> >
> > man setrlimit takes me to linux programmers man page
> > I am looking for a solution from bash shell. Is there any way out ?
> >
>
> ulimit?   It is a built-in bash function; "man bash"  for the gory details.
>
> HTH
> --
> Arun Khan
> Sent from my non-iphone/non-android device
> (অরুণ খান্/अरुण खान)
>
> I'd rather be called a moron, than walk around with doubts in my mind.
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> ILUGC Mailing List Guidelines:
> http://ilugc.in/mailinglist-guidelines
>
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to