Results 1 to 4 of 4
  1. #1

    Question Urgent need a help about Cron Job in cpanel?

    Hello Friends,

    I need some help about cron job.
    I have hostgator hosting and i make a torrent site.
    i need to remove all temp files daily.
    Path: "public_html/website.com/core/tmp"
    How can i set a corn job, so it remove daily all temp files automatically in /temp folder.?
    I trying to "corn jobs" tool in my cpanel but i don't know which Command should i need to use in it.
    Please help me.

    Thank you very much.

  2. #2
    Join Date
    Mar 2009
    Location
    CA
    Posts
    9,350
    Quote Originally Posted by amitkreal View Post
    Hello Friends,

    I need some help about cron job.
    I have hostgator hosting and i make a torrent site.
    i need to remove all temp files daily.
    Path: "public_html/website.com/core/tmp"
    How can i set a corn job, so it remove daily all temp files automatically in /temp folder.?
    I trying to "corn jobs" tool in my cpanel but i don't know which Command should i need to use in it.
    Please help me.

    Thank you very much.
    I doubt they even allow you to run a torrent site...
    〓〓 RackNerd LLC - Introducing Infrastructure Stability
    〓〓 Dedicated Servers, Private Cloud, DRaaS, Colocation, VPS, DDoS Mitigation, Shared & Reseller Hosting
    〓〓 www.linkedin.com/in/dustincisneros/
    〓〓 My fancy email dustin@racknerd.com

  3. #3
    Join Date
    Jul 2005
    Location
    New Jersey, US
    Posts
    1,597
    The following should work:

    0 0 * * * rm -f /path/to/folder/tmp/*
    (replace with the actual folder)

    Be careful, this removes ALL files in the folder you specify.
    PlatinumServerManagement (also known as PSM)
    The OLDEST and LARGEST and MOST TRUSTED server management provider in the USA, with 15+ employees and growing!
    Providing quality support for OVER 21 years! Currently supporting over 3,000+ servers monthly!

    www.PlatinumServerManagement.com Proud member of the NJ BBB & Chamber of Commerce & Authorized cPanel Partner.

  4. #4

    Thank you

    Thank you mate...

Similar Threads

  1. cron job help in cpanel
    By alex05 in forum Hosting Software and Control Panels
    Replies: 1
    Last Post: 09-19-2008, 04:29 AM
  2. cPanel standard Cron Job
    By stuffradio in forum Hosting Security and Technology
    Replies: 4
    Last Post: 03-02-2007, 12:25 AM
  3. cPanel and Cron Job help
    By Lang14 in forum Hosting Software and Control Panels
    Replies: 2
    Last Post: 01-08-2006, 10:18 PM
  4. Cpanel Simpre Cron job
    By webstyler in forum Hosting Security and Technology
    Replies: 2
    Last Post: 02-14-2004, 06:45 AM
  5. cron job in cpanel...need help
    By fjiwa in forum Programming Discussion
    Replies: 3
    Last Post: 03-23-2003, 10:40 AM

Tags for this Thread

Posting Permissions

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