From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Daly Subject: Re: Batch execution and --script Date: Wed, 29 Aug 2012 11:42:52 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6lLz-00088Y-BP for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 12:42:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6lLy-0004bU-3u for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 12:42:55 -0400 Received: from mail-vc0-f169.google.com ([209.85.220.169]:43158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6lLx-0004bO-Vk for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 12:42:54 -0400 Received: by vcbfl13 with SMTP id fl13so1011704vcb.0 for ; Wed, 29 Aug 2012 09:42:53 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: Org Mode On Wed, Aug 29, 2012 at 10:47 AM, Marcelo de Moraes Serpa wrote: > Hey guys, > > Regarding this: http://orgmode.org/manual/Batch-execution.html > > I also had success using --script, as in: > > #!/Applications/Emacs.app/Contents/MacOS/Emacs --script > > In the top of a .el file. You can then chmod it to be executable and run it. Would you mind sharing a simple .el file you'd use that way? The site's example is a bash script, and I wonder how much cleaner a .el file would be. Nick