Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread John Hendy
On Fri, Aug 5, 2011 at 6:34 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi John, On Sat, Aug 6, 2011 at 12:15 AM, John Hendy jw.he...@gmail.com wrote: 1) writing a script that could handle the failure and leave the current agenda exported text file if it happened Do you run into the

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread suvayu ali
Hi John, On Mon, Aug 8, 2011 at 8:12 PM, John Hendy jw.he...@gmail.com wrote: Do you run into the same problem if you one the file before hand in read only mode? Something like this before the agenda command might work. (find-file-read-only FILENAME) How would I do this via the command

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread John Hendy
On Mon, Aug 8, 2011 at 1:28 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi John, On Mon, Aug 8, 2011 at 8:12 PM, John Hendy jw.he...@gmail.com wrote: Do you run into the same problem if you one the file before hand in read only mode? Something like this before the agenda command might

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread suvayu ali
Hi John, On Mon, Aug 8, 2011 at 8:53 PM, John Hendy jw.he...@gmail.com wrote: If you can use wildcards to specify your files, it might be possible by just one extra call to --eval. Something like this might work: emacs --batch -l ~/.emacs --eval '(find-file-read-only wildcard t)' \      

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread John Hendy
On Mon, Aug 8, 2011 at 1:59 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi John, On Mon, Aug 8, 2011 at 8:53 PM, John Hendy jw.he...@gmail.com wrote: If you can use wildcards to specify your files, it might be possible by just one extra call to --eval. Something like this might work:

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread suvayu ali
Hi John, On Mon, Aug 8, 2011 at 9:48 PM, John Hendy jw.he...@gmail.com wrote: -batch -l ~/.emacs -eval Your problem is the long options are wrong. According to the manpages, there should be 2 hyphens. --eval and --batch. GL -- Suvayu Open source is the future. It sets us free.

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread John Hendy
On Mon, Aug 8, 2011 at 3:22 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi John, On Mon, Aug 8, 2011 at 9:48 PM, John Hendy jw.he...@gmail.com wrote: -batch -l ~/.emacs -eval Your problem is the long options are wrong. According to the manpages, there should be 2 hyphens. --eval and

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread Nick Dokos
suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi John, On Mon, Aug 8, 2011 at 9:48 PM, John Hendy jw.he...@gmail.com wrote: -batch -l ~/.emacs -eval Your problem is the long options are wrong. According to the manpages, there should be 2 hyphens. --eval and --batch. Nope - emacs

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread Nick Dokos
John Hendy jw.he...@gmail.com wrote: On Mon, Aug 8, 2011 at 1:59 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi John, On Mon, Aug 8, 2011 at 8:53 PM, John Hendy jw.he...@gmail.com wrote: If you can use wildcards to specify your files, it might be possible by just one extra call

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread John Hendy
On Mon, Aug 8, 2011 at 3:37 PM, Nick Dokos nicholas.do...@hp.com wrote: John Hendy jw.he...@gmail.com wrote: On Mon, Aug 8, 2011 at 1:59 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi John, On Mon, Aug 8, 2011 at 8:53 PM, John Hendy jw.he...@gmail.com wrote: If you can use

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread Nick Dokos
John Hendy jw.he...@gmail.com wrote: On Mon, Aug 8, 2011 at 3:37 PM, Nick Dokos nicholas.do...@hp.com wrote: John Hendy jw.he...@gmail.com wrote: On Mon, Aug 8, 2011 at 1:59 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi John, On Mon, Aug 8, 2011 at 8:53 PM, John Hendy

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread suvayu ali
Hi Nick, On Mon, Aug 8, 2011 at 10:37 PM, Nick Dokos nicholas.do...@hp.com wrote: As far as I know, emacs accepts any wildcard that is valid in the shell. Since all your files are in ~/org, I would say try ~/org/*.org. The '~/org/' limits it to files within your org directory and the

Re: [O] Handling errors in command line exporting of agenda?

2011-08-08 Thread Nick Dokos
suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi Nick, On Mon, Aug 8, 2011 at 10:37 PM, Nick Dokos nicholas.do...@hp.com wrote: As far as I know, emacs accepts any wildcard that is valid in the shell. Since all your files are in ~/org, I would say try ~/org/*.org. The '~/org/' limits

[O] Handling errors in command line exporting of agenda?

2011-08-05 Thread John Hendy
I have a custom view that I'm exporting to a text file and then displaying on my wallpaper with conky. I noticed that if I actually have emacs open and a file is autosaved but not saved for real, then the exported text file is blank. I use this command in cron: ,--- | emacs -batch -l ~/.emacs

Re: [O] Handling errors in command line exporting of agenda?

2011-08-05 Thread suvayu ali
Hi John, On Sat, Aug 6, 2011 at 12:15 AM, John Hendy jw.he...@gmail.com wrote: 1) writing a script that could handle the failure and leave the current agenda exported text file if it happened Do you run into the same problem if you one the file before hand in read only mode? Something like

Re: [O] Handling errors in command line exporting of agenda?

2011-08-05 Thread suvayu ali
On Sat, Aug 6, 2011 at 1:34 AM, suvayu ali fatkasuvayu+li...@gmail.com wrote: if you one the file if you open* the file Sorry for the typo. -- Suvayu Open source is the future. It sets us free.