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.

Cron job

Discussion in 'General Discussion' started by john_24, Aug 7, 2006.

  1. john_24

    john_24 Registered

    Joined:
    Jul 28, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I want to create a cron job in order to delete the "tmp" directory from my ftp which is storing the webalizer and more else.can anyone help me with that command?to delete always that directory.thanks a lot.
     
    #1 john_24, Aug 7, 2006
    Last edited by a moderator: Aug 7, 2006
  2. systemtek

    systemtek Member

    Joined:
    Jul 21, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Staffordshire, England
    Something like :

    rm /tmp/*.log #remove all files with .log

    This will remove all files that are .log in the tmp directory. Obviously ensure that you have the correct directory in your script, might be /home/username/tmp/*.log

    I might be tempted to keep the directory ! but just delete whats in it, if you have double checked you deff dont want anything in the directory.

    Thanks
     
    #2 systemtek, Aug 7, 2006
    Last edited: Aug 7, 2006
Loading...

Share This Page