The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to prevent an application from closing a file jasahl AIX 4 01-06-2008 09:39 PM
How do I prevent cron from returning errors on a file not found? goodmis Shell Programming and Scripting 6 02-06-2007 10:14 AM
Editing a large size file Rock UNIX for Dummies Questions & Answers 2 12-04-2006 09:32 PM
Prevent file from being mailed multiple times from a job Sree_2503 Shell Programming and Scripting 2 11-14-2006 12:47 PM
Strange difference in file size when copying LARGE file.. 0ktalmagik Filesystems, Disks and Memory 1 06-03-2006 07:34 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-10-2005
ust ust is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 98
prevent file size is too large

We have EDP members will do some testing job in my system , but sometimes these process will generate some error to the system log or any file ( usually the members don't know the log is reached to this level ) , then make the system crashed , could suggest the way how can to prevent this problem ? eg. restrict the file size . thx
  #2 (permalink)  
Old 03-10-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Quote:
process will generate some error to the system log or any file ( usually the members don't know the log is reached to this level )
Any file? Explain please.

As far as system logs - you can control what gets logged normally with the syslog config file. Since you didn't put what your OS and version is, I can only guess that it's /etc/syslog.conf. This may or may not work in your situation since you put the statement 'generate some error to the system log or any file' which doesn't make sense (at least to me).

Quote:
then make the system crashed
You should allow processes to crash your system by allowing log files to be in a partition that could crash the server. Move your log files to a partiton where it will hang the process, not the server. Again, without knowing more information, that is all I can suggest.

Quote:
could suggest the way how can to prevent this problem ? eg. restrict the file size
Have you looked into disk quotas or if this is a core file, restricting building of core files (setting up core to a link to /dev/null will make it to users can't cause a core file to fill up their home directory, which in turn won't fill up / if that is how your server is set up.

Give more info on the file that is being made - post your OS and version - look into disk quota, syslog.conf, and/or link core to /dev/null.
  #3 (permalink)  
Old 03-10-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
Also look at the ulimit command. It can limit the size of any file.
Sponsored Links
Closed Thread

Bookmarks

« erase file | Banner »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0