Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    3

    Exclamation Cron job

    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.
    Last edited by chirpy; 08-07-2006 at 04:48 AM.

  2. #2
    Member
    Join Date
    Jul 2006
    Location
    Staffordshire, England
    Posts
    16

    Default

    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
    Last edited by systemtek; 08-07-2006 at 05:51 AM.
    SystemTek
    Computer - Electronics - Telecoms

    Site : http://www.systemtek.co.uk
    Support Forum : http://forum.systemtek.co.uk

Similar Threads & Tags
Similar threads

  1. Cron Job Help Please...
    By mikka12 in forum New User Questions
    Replies: 5
    Last Post: 07-12-2010, 08:49 PM
  2. How to cron job?
    By dachooch in forum New User Questions
    Replies: 4
    Last Post: 05-03-2010, 08:15 AM
  3. about cron job
    By persianwhois in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-14-2007, 08:28 AM
  4. cron job
    By albertldee in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-11-2003, 12:08 AM
  5. Cron Job
    By Dawson in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-13-2001, 07:06 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube