Results 1 to 6 of 6

Thread: crontab for osx

  1. #1
    crontab for osx
    hi guys -
    i'm pretty new to mac systems (usually a windows person with some experience in redhat 9.0/7.2) ..

    so i'm trying to install a crontab for my system and i was wondering the syntax and stuff of it .. is it the same as it is in linux or is it different? does stuff have to be in certain directories in order for it to work?

    because what i have running right now is this...
    */60 * * * *  ( $PATH/ -n $PATH/bkup.txt) > /dev/null;
    */2 * * * 6     ( $PATH/ -f $PATH/bkup.txt) > /dev/null; is to backup files from some of my stuff. ..and backup.txt tells the system what files. now i know that this script does work on linux because that's where i wrote it .. and i *think* i should be getting emails every minute telling me that the files are backed up and stuff, but nothing is showing up in my little window.

    that's my other question in general too ...
    does osx have the same commands as linux? or are they different?

    i think that's all for now .. thanks for reading this

  2. #2

    rman's Avatar
    Member Since
    Dec 24, 2002
    Los Angeles, California
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    You should be able to look at the man listing on the crontab command. It should give you the syntax.
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  3. #3

    witeshark's Avatar
    Member Since
    Mar 09, 2004
    Miami FL
    G4 1Ghz OS X 10.4.7
    In OS X crons can be manually run in the finder > applications > utilities > terminal: type sudo sh /etc/daily and run weekly - monthly as needed

  4. #4

    Member Since
    Dec 28, 2003
    Long Island, NY
    15" MacBook Pro & 23" ACD
    or you can spend 9$ and just get Macaroni from versiontracker and never have to worry about maintaining your mac ever again!

  5. #5

    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Mount Vernon, WA
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    I use CronniX to create crontabs and to edit them etc etc. All the same commands should be available to you.. i guess it depends on the flavor that you were using and what shell you were using and what command you are talking about

    Remember to set your file to be executable.. otherwise it will not go anywhere

  6. #6
    estellas, your understanding is correct. crontab syntax is universal.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Auto Type password for sudo command from crontab
    By aceofsplades in forum OS X - Operating System
    Replies: 1
    Last Post: 09-19-2014, 11:59 PM
  2. HELP!crontab script displays output differently than command line
    By spankincubus in forum OS X - Apps and Games
    Replies: 3
    Last Post: 02-04-2012, 03:08 PM
  3. Crontab
    By brianbond in forum OS X - Operating System
    Replies: 6
    Last Post: 10-20-2007, 09:42 PM
  4. Remove line from /etc/crontab
    By dstrebel in forum OS X - Operating System
    Replies: 2
    Last Post: 02-21-2006, 01:25 AM
  5. Crontab frustration running .pl
    By scoopz in forum OS X - Operating System
    Replies: 1
    Last Post: 10-15-2004, 05:54 AM

Posting Permissions

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