emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Command line switch under Windows version of org-mode
@ 2008-10-18 16:01 mwills
  2008-10-19 18:29 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: mwills @ 2008-10-18 16:01 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 490 bytes --]

I have been trying to get an org-mode to output an agenda to the Windows command prompt.
This worked easily under linux with the following switches on the command line:
-batch -l <<<path>>>/init.el -eval '(org-batch-agenda "a" org-agenda-ndays 30)'
I eventually got this working under Windows by replacing the single quotes with double quotes and replacing "a" with """a""".
So the working parameters are
-batch -l "<<<path>>>/init.el" -eval "(org-batch-agenda """a""" org-agenda-ndays 30)"

[-- Attachment #1.2: Type: text/html, Size: 574 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Command line switch under Windows version of org-mode
  2008-10-18 16:01 Command line switch under Windows version of org-mode mwills
@ 2008-10-19 18:29 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-10-19 18:29 UTC (permalink / raw)
  To: mwills; +Cc: emacs-orgmode

Hi,

this is useful information,  would you like to formulate a FAQ entry  
about this and send it to me so that we can have this information  
available in a prominent place?

- Carsten

On Oct 18, 2008, at 6:01 PM, mwills@fsmail.net wrote:

> I have been trying to get an org-mode to output an agenda to the  
> Windows command prompt.
> This worked easily under linux with the following switches on the  
> command line:
>
> -batch -l <<<path>>>/init.el -eval '(org-batch-agenda "a" org-agenda- 
> ndays 30)'
>
> I eventually got this working under Windows by replacing the single  
> quotes with double quotes and replacing "a" with """a""".
> So the working parameters are
>
> -batch -l "<<<path>>>/init.el" -eval "(org-batch-agenda """a""" org- 
> agenda-ndays 30)"
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-19 18:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-18 16:01 Command line switch under Windows version of org-mode mwills
2008-10-19 18:29 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).