Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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,051
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Earth
    What is the size of /tmp?

    and what are the files that are filling up the /tmp partition?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cluepatel

    cluepatel Member

    Joined:
    May 31, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    /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,051
    Likes Received:
    2
    Trophy Points:
    168
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cluepatel

    cluepatel Member

    Joined:
    May 31, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    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,051
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Earth
    I have sent you a PM
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. soulman

    soulman Registered

    Joined:
    Apr 26, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice