Find the answer to your Linux question:
Results 1 to 5 of 5
I've just been playing around with some shell scripts and I was wondering how I could execute a script I wrote (stored in a file) at certain times (i.e. startup, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    11

    Execute script on startup, etc.


    I've just been playing around with some shell scripts and I was wondering how I could execute a script I wrote (stored in a file) at certain times (i.e. startup, every hour, etc.) without calling it manually. Any help?

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    Look into cron. It'll get you where you need to go.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    11
    I looked into the man page for cron and it mentioned two files - rc and rc.local - but I'm not exactly sure what to do from there.

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    hi !!

    check this link ...

    http://www.scrounge.org/linux/cron.html





    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Just Joined!
    Join Date
    Jul 2006
    Posts
    11
    Thanks for the link. I read the guide and followed the instructions but my scripts aren't being executed. I set up the crontab correctly and it shows when I use crontab -l but the actual script is never carried out. Can anyone help?

Posting Permissions

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