Hi everyone. I have a slightly convoluted question, and I have just enough Linux knowledge to know roughly how to do it (but not enough to figure out exactly how!).
I use Zim desktop wiki on my Asus EeePC (xandros) as my catch-all program (note-taking, manuscript preparation, todo list, etc). It's really useful, and I've just figured out how to make it export to webpages from the command-line, as follows:
$ zim --export format=html,template=/usr/share/zim/templates/Presentation.html,dir=/home/user/My\ Documents/ZimExport,index=index ~/My\ Documents/Zim
Now, what I'd like to do is make zim do this periodically, then auto-ftp the resulting folder to my web server, so that I can access all of my notes from any computer (read-only, of course).
If I can password-protect the resulting website, that would be even better (though not absolutely necessary).
I'm guessing that I need to use a script and crontab to do this, but my knowledge level doesn't extend that far. Here are my sticking-points:
1. I'm not sure of the syntax for the script, or where it should be put.
2. I'm not sure whether EeePC xandros has a built-in commandline ftp program (similar to sendmail for email), that I can incorporate into my script. If not, can anyone suggest a lightweight option?
3. I'm not sure of the syntax for crontab. I'd like it to do this maybe twice a day. If the laptop is not on when it's due to happen, can it be forced to do it on the next boot?
Thanks for any advice you can offer. I'm loving how flexible this wee beastie is!
edit: Forgot one more question - if the script runs when I don't have an internet connection, what happens? I'd prefer not to have dialogue boxes popping up every time it fails. Can I redirect error messages to a log, or is that the default behaviour? Thanks!