I would like my emacs to call
dropbox status
every 30 seconds and display whether Dropbox is up-to-date at the bottom of the buffer (where info such as the line-number and file name is).
How could I do this?
EDIT to add:
On my linux (with dropbox installed), the command line dropbox status
returns the Dropbox status:
$ dropbox status
Up to date
Unfortunately it seems like this doesn't work on OSX (https://superuser.com/questions/678925/using-dropbox-from-the-command-line-on-osx).
start-process
ordo-applescript
. – lawlist Apr 2 '16 at 15:58mode-line-format
. – lawlist Apr 2 '16 at 16:09(shell-command-to-string "dropbox status")
and see if it produces a result in the*Messages*
buffer. And, if so, whether there is a trailing "\n" for new line -- which would need to be programmatically removed in the next step . . . . Here is what I am using to test this, because I'm on OSX not Linux -- I'm just using the command-line for getting the date when in the terminal:(replace-regexp-in-string "\n$" "" (shell-command-to-string "date"))
The next step will be to . . . – lawlist Apr 2 '16 at 18:51