The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to setup cron job for Temp File removal ?

Discussion in 'Workarounds and Optimization' started by cluepatel, Jan 3, 2010.

  1. cluepatel

    cluepatel Member

    Joined:
    May 31, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hello guyz,

    please help me how to setup temp file removal ? time to time ?

    please tell me in detail how to setup such cron job in whm or command line?

    awaiting your reply
     
    #1 cluepatel, Jan 3, 2010
    Last edited: Jan 3, 2010
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    What is the size of /tmp?

    and what are the files that are filling up the /tmp partition?
     
  3. cluepatel

    cluepatel Member

    Joined:
    May 31, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    /usr/tmpDSK 485M 361M 99M 79% /tmp


    please help me...

    gimme each and every step how to setup some cron job so it will keep this under balance ?

    please...help
     
  4. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Well, it depends on what is filling up the /tmp partition. Also the partition is too small in size, why not create a large size virtual partition and mount it on /tmp?
     
  5. cluepatel

    cluepatel Member

    Joined:
    May 31, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    sir please gimme code that will empty the space every 4 hours.

    please help...
     
  6. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
  7. soulman

    soulman Registered

    Joined:
    Apr 26, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    any chance you could post the details here as i would like to have this set up as my TMP folder is filling up


    thanks
     
Loading...

Share This Page