I did a brief search on this but all I found was how to run shut down the computer via Terminal. What I want to do is run one command when the computer is shut down or when I log out of my account. I use Automator to enable journaling on my HDD on login. However, I don't know how to disable journaling on log off/shut down. I want to do this so that I can write access when using Ubuntu, which I dual boot with. I suppose I could make an application through Automator to click on that will both disable the journal and shut down the computer but I'd really like to not have to do that.