Results 1 to 2 of 2

Thread: Proxy Script

Hybrid View

  1. #1

    Unhappy Proxy Script

    Hi dear,
    i want to create a script that will automatically detect my /var size of linux partition in redhat and then it should automatically stop service and should remove all the files in squid cache. i don't know how to check that partition is filled or not??? can any one help me

    Scenarion of Script
    1>Check that /var is fill or not??
    2> if (yes)
    {Remove squid cache files}
    3>else
    {should check again}

    Regards.
    Muhammad Asif

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,758
    Quote Originally Posted by asi.linux
    Hi dear,
    i want to create a script that will automatically detect my /var size of linux partition in redhat and then it should automatically stop service and should remove all the files in squid cache. i don't know how to check that partition is filled or not??? can any one help me

    Scenarion of Script
    1>Check that /var is fill or not??
    2> if (yes)
    {Remove squid cache files}
    3>else
    {should check again}

    Regards.
    Muhammad Asif
    I would run a cron job that checks for the size free and if its too small runs another job that stops needed services, clears the caches, and then restarts the services. I would include (from personal experience here) samba in that shutdown script as well, since I have had it bork out due to lack of free space once, and I thought my computer fried due to the sluggishness even after freeing the space. What was needed was a stop a wait and then a restart (took a 5 min pause to ensure that it did indeed speed my machine up).

Similar Threads

  1. changing Firefox proxy config by script
    By xylex_blaiste in forum Programming
    Replies: 2
    Last Post: 02-26-2007, 06:54 AM
  2. Set Up SQL Server with Proxy Server
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 02:18 AM
  3. Live Communications Server 2005 Glossary
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 08:16 PM
  4. Install Proxy Server 2.0 on Windows 2000
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 01:38 AM
  5. Shell Script to modify apachectl
    By gaxprels in forum Programming
    Replies: 6
    Last Post: 07-23-2002, 07:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •