At job in Mac OSX
Wednesday, December 31st, 1969Turns out that at jobs (a.k.a. the at queue) don’t support some of the shortcuts you can use in most other flavors of *nix, times like “15:00″, “3PM”, or “teatime”.
In OSX, you have to specify -t YYMMDDhhmm. Example:
at -t 10081637.30
Don’t forget the CTRL + D to schedule it!
In my example, I have it pointing to a file that has only one line:
sh uploadAtCertainTime.sh
No more waking up at 6AM (that’s 9AM EST) to upload press releases!
—
Here is my uploadAtCertainTime.sh script:
#!/bin/sh
USER=username
PASSWD=supersecretpassword
ftp -n ftp.myhost.org <<script
user $USER $PASSWD
binary
cd public_html
lcd /Applications/xampp/htdocs/[wherefileslive]/
put file.html
quit
SCRIPT
Post Script: this only works if you leave your computer on. D’oh!