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 <srikrishnamohan at gmail.com>
To: ILUG-C <ilugc at ae.iitm.ac.in>
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 <knura9 at gmail.com> wrote:
On Sat, Sep 28, 2013 at 11:33 PM, km <srikrishnamohan at gmail.com> 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