Results 1 to 2 of 2

Thread: how to write cron job

  1. #1

    how to write cron job

    i want to write cron job for back the mails stored in /var/mail/username , thats for 100 users at time.

    can anybody give me detail steps for it

    thank you

    regards

    anuradha

  2. #2
    You don't really write a cron job. You would write a script, and then have cron schedule it.

    Here is a sample script for backing up mailbox(es).

    http://www.sun.com/bigadmin/scripts/...up-mail.sh.txt

    You can read the Linux Shell Scripting Tutorial and then modify it to suit your needs.

    When you are satisfied, you can use cron to schedule it.

    http://www.tech-geeks.org/contrib/md...ron-howto.html
    My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive.

Similar Threads

  1. not getting top output when cron runs script
    By caligal in forum Linux - General Topics
    Replies: 1
    Last Post: 01-14-2007, 10:30 PM
  2. Using cron for auto tasks
    By sharon63 in forum Linux - General Topics
    Replies: 5
    Last Post: 02-27-2004, 01:02 PM
  3. renice via cron failed
    By tekion in forum Linux - General Topics
    Replies: 1
    Last Post: 12-31-2002, 01:27 AM
  4. Problem with setting up Cron in RH 7.2
    By Compunuts in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 04-07-2002, 05:28 PM
  5. Slack 8 and crond - cron not running?
    By ph34r in forum Linux - General Topics
    Replies: 0
    Last Post: 01-08-2002, 05:54 PM

Bookmarks

Posting Permissions

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