Hi Keifer, Depending on the version of OS X you’re using (hopefully it’s a recent one), you might have more reliable script execution using Launchd rather than Cron. For your script, I would stick to bash as you seem to be combining AppleScript and shell script. Make the following text file: #!/bin/sh /usr/local/bin/brew update /usr/localbin/brew upgrade tor echo “script ran at `date`” >> /tmp/torupdate.log exit 0 Make the file executable by typing sudo chmod +x (filename) in the terminal and pressing enter. You will be prompted for your password. You can easily make a launchd plist file using the online zerowidth tool: http://launched.zerowidth.com/ . Include the complete path to the script you just made in the launchd plist file as the command. Every time it runs it will write to the log file at /tmp/torupdate.log which you can clear by restarting your Mac. Drop your plist file into /Library/LaunchDaemons or ~/Library/LaunchDaemons and restart your computer to make it take effect. If this works for you, you may want to start modifying the script to stop Tor as it is being upgraded, restart it afterwards and perhaps add some more logging or alerts. Good luck! S
|
Attachment:
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ tor-relays mailing list tor-relays@xxxxxxxxxxxxxxxxxxxx https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays