5
I need to test some software (nightly) on 3 Mac OS X versions: 10.4, 10.5, 10.6 -- the software interfaces with the hardware, so non-native solutions (like virtualisation) are not ideal.
So I figured the best way to test the software (which is automatic by the way) is to have a partition for each version of the OS. This way I can boot to a specific version to test the software.
This needs to be done on a timed schedule, so I was hoping I could run a command like this in a crontab:
reboot --to "Mac OS X 10.5"
Is something like this possible, or do I need to write my own software to do this?
5There's no reason to (and good reasons not to) use a shell script to run AppleScript to run a shell script... This is especially likely to fail when run from crontab. Instead, just put
bless -mount "/Volumes/Name of the drive" -setBoot && shutdown -r now
directly in a shell script, and run that via crontab. – Gordon Davisson – 2010-10-21T21:28:11.483@Gordon Davisson This should be an answer; I would have accepted it. I will accept Diago's instead. – Nick Bolton – 2010-12-04T15:04:36.863
I found one caveat; you'll need to run it as the root user. – Nick Bolton – 2010-12-04T15:05:09.983