.login or .profile to run crontab on login?
Coming from a Windows background so no apologies for this question.
I'm trying to set up a login script to set up a job through crontab when I log in (not just when I open a terminal window)
My understanding is that .profile is where to put things that should run when you open a terminal session. However, i want my script to run when I login to OSX in the morning.
My script just sets up some aliases, so i can keep my firewire drives spinning without powering down throughout the working day, which is driving me nuts.
Script is:
alias spinoff="crontab -r"
alias spinon="crontab ~/Documents/spin_crontabs"
spinon
~/Documents/spin_crontabs just contains the crontab data.
If I put this in the .login file in my home directory, then the aliases don't show up in a terminal session, and the cron job doesn't show up in crontab -l
I know I'm 99% there, but I'm missing a vital clue!
Any help much appreciated.
Steve
iMac Nov 2007, Mac OS X (10.5.1), It's spelt - Aluminium