Org-Mode export and upload from the command line
The following is a little snippet to export an Emacs org mode file to HTML and to upload it to the server via FTP. Remark: It’s better to use scp
for the upload!
G:\Programme\emacs-24.3\bin\emacs.exe --batch -l "C:\Users\Uwe\.emacs" --visit "nameoftheorgfile.org" --funcall org-html-export-to-html @echo off echo user Myusername> ftpcmd.dat echo MyPassword>> ftpcmd.dat echo bin>> ftpcmd.dat echo put nameoftheorgfile.html>> ftpcmd.dat echo quit>> ftpcmd.dat ftp -n -s:ftpcmd.dat servername del ftpcmd.dat