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.

I need some help with a script....

Discussion in 'General Discussion' started by I-Web, Sep 29, 2003.

  1. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    HI all,

    I currently run a server that is also used as an e-mail 2 fax gateway.

    What i need is a script that i can put into a cron job to do the following on the last day of every month,

    all of the logs are labelled by the e-mail senders address... i.e. user@domain.com.log

    i need to create a script that wil create a directory with the name of the month inside an oldlogs directory, then move all of the logs into the directory, and then mail me to tell me its done.

    Any ideas??? ive had a look round, and that but cant work it out.....

    cPanel.net Support Ticket Number:
     
  2. mjm

    mjm BANNED

    Joined:
    Aug 1, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    read up on shell scripting... this should be rather easy...

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page