LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 03:28 PM   #1
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 139

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, 04:15 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
huh?
 
Old 01-31-2011, 04:55 PM   #3
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 139

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, 04:57 PM   #4
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 672

Rep: Reputation: 94
how about logrotate?
 
Old 01-31-2011, 04:59 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 05:21 PM   #6
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 139

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

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

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

Rep: Reputation: 20
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, 09:47 PM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
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


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


All times are GMT -5. The time now is 02:47 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration