Due to emacs interlocking files I want to run org-mobile command via cron but using the emacsclient:
emacsclient -nw --eval "(org-mobile-pull)" --eval "(org-mobile-push)"
but if there is no emacs server running I want the command to run using emacs batch mode:
emacs --batch --eval "(org-mobile-pull)" --eval "(org-mobile-push)"
I'm not sure how to accomplish this so curious if anyone has any ideas.