Discussion in 'Mac Programming' started by Jesdisciple, Mar 11, 2008.

  1. macrumors newbie

    Mar 11, 2008
    Hello, I'm a WinXP user building a server application to regularly insert records into a database. Because the size of the database will grow rapidly, I need to regularly prune records from it, and the only way I can find is by 'cron' (or the OS equivalent).

    I want my application to work in any environment, including every OS that I'm aware of. So do you know of any necessary Mac considerations related to the 'cron' command? For example...
    • I read on that OS X has a 'cron' command; is it the earliest release that does?
    • How can I test (using PHP's 'php_uname' function) for Mac (and, if necessary, OS [version < 10])?
    • Are there any syntax variations for 'cron'?

  2. TEG
    macrumors 604


    Jan 21, 2002
    Langley, Washington
    cron or chron jobs are common in the UNIX environment. cron is a POSTIX compliant call, therefor it should be the same in all *NIX environments.

  3. thread starter macrumors newbie

    Mar 11, 2008
    Do you happen to know what php_uname would return in Mac, or what resource(s) it uses to determine the return value? (I need to have a list of values which indicate supported environments.)
  4. macrumors 6502a

    Sep 3, 2005
    Cramlington, UK
    This is what php_uname() prints on mine:-

    Darwin virgo.local 9.2.0 Darwin Kernel Version 9.2.0: Tue Feb 5 16:13:22 PST 2008; root:xnu-1228.3.13~1/RELEASE_I386 i386

    Hope that helps!

    b e n
  5. thread starter macrumors newbie

    Mar 11, 2008
    Thanks, both of you! BTW, 'uname' is apparently the source of data on *nix for 'php_uname'.

Share This Page