LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-31-2011, 02:28 PM   #1
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Rep: Reputation: 16
bsh


not good in bash scripts, should start clearing up archive log directory the moment it gets close to 90%
 
Old 01-31-2011, 03:15 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
huh?
 
Old 01-31-2011, 03:55 PM   #3
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
i do agree with you, but i dont have any choices. i am trying but fail to get the result.
 
Old 01-31-2011, 03:57 PM   #4
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
how about logrotate?
 
Old 01-31-2011, 03:59 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by abhijeetdutta View Post
i do agree with you, but i dont have any choices. i am trying but fail to get the result.
Sorry ... what was the question?


Cheers,
Tink
 
Old 01-31-2011, 04:21 PM   #6
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
a bash script which can delete the logs as soon it reaches to 90%
 
Old 01-31-2011, 04:30 PM   #7
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
@Ozan, how to use logrotate.. can you please brief.
 
Old 01-31-2011, 04:36 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Code:
man logrotate
less /etc/logrotate.conf
less /etc/logrotate.d/*
 
Old 01-31-2011, 07:44 PM   #9
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 89

Rep: Reputation: 22
Quote:
Originally Posted by abhijeetdutta View Post
@Ozan, how to use logrotate.. can you please brief.
http://linuxers.org/howto/howto-use-...nage-log-files
 
Old 01-31-2011, 08:47 PM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

Quote:
Originally Posted by abhijeetdutta View Post
not good in bash scripts, should start clearing up archive log directory the moment it gets close to 90%
Please use descriptive titles.

I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem/queries.





 
  


Reply



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
[SOLVED] xclock does not work on bsh but on csh newcat Linux - Newbie 1 01-28-2011 01:44 PM
Compare BSH and Linux swmok Linux - General 3 01-07-2005 09:37 PM
Bsh Script ( Email ) joseph Linux - Networking 3 10-29-2003 10:36 PM
Csh or Bsh max_linuxquesti Programming 4 12-26-2002 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:19 PM.

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