Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Log Cleaner Bash Script by Andy1210
#1
Files:

logs.sh
logdel.sh
logs.txt

1. Edit logs.txt
2. Copy all files from pack to your server /root dir
3. Execute logs.sh with sh command with ssh client as root (PUTTY) -> "sh sql.sh"

Download pack:
http://www.mediafire.com/?wtw2ualntwj





Restored from old drupal forum, for user uid:2603 username:Andy1210
You may reset your password to access your new account here.
Reply
#2
Thank you for contribution,
another way, on command line:
<code>
cd /var/log
rm -rvf *.gz
rm -rvf *.?
> ehcp.log
> apache_common_access_log

</code>

Restored from old drupal forum, for user uid:2603 username:Andy1210
You may reset your password to access your new account here.
Reply
#3
Yes, but these logs that you wrote only the common logs. My script deletes every log that each vhost creates for himself.

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping