Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-01-2010, 01:21 PM   #1
Registered: Mar 2010
Posts: 52

Rep: Reputation: 15
Ulimit i need an explain

ulimit -c unlimited
while true; do ./executeable; done
When i will write this in console it will run executeable file and it will generate report : after crash so i can gdb the report.
The application after crash will restart how can i prevent restarting the application after it's crash ?
Old 04-01-2010, 03:20 PM   #2
LQ Newbie
Registered: Jan 2005
Location: North Carolina
Distribution: FC4
Posts: 6

Rep: Reputation: 0
error code checking

Assuming the crash "executeable" will set the return code to something other then zero, you could test for it.
ulimit -c unlimited
while true; do
 if [ "$?" -gt 0 ]; then
  exit $?
Old 04-02-2010, 03:48 AM   #3
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 15
I have placed it to and then i wrote ./ in screen and the result after crash ofc:
./ line 8: 3571 Segmentation fault (core dumped) ./executeable
Seems like this is working because it's not restarting the application .

Last edited by Kraiser10; 04-02-2010 at 03:58 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ulimit Serena Linux - Software 6 12-18-2014 12:04 AM
ulimit spivy66 Linux - General 6 01-11-2008 02:33 PM
ulimit introuble Linux - Security 1 07-22-2006 04:33 AM
ulimit -t juanbobo Linux - Security 3 06-10-2005 10:43 AM
ulimit -n evilrico Linux - Distributions 0 03-14-2003 05:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration