crocefisso
crocefisso

Reputation: 903

How to trigger org-mobile-push from bash?

On Ubuntu 14.04 I frequently use M-x org-mobile-push on Emacs GUI. Now I'm writting a script (bash) and I was wondering how could I trigger the extended-command org-mobile-push from it.

Upvotes: 0

Views: 67

Answers (1)

tripleee
tripleee

Reputation: 189457

You can run Emacs in batch mode easily. You'll apparently need to have it load your .emacs file separately in order for it to suck in your org-mode preferences before evaluating code from the command line.

emacs --batch --load ~/.emacs \
      --eval "(progn (require 'org-mobile) (org-mobile-push))"

Upvotes: 2

Related Questions