emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Babel & DOS
@ 2010-11-15 20:30 Michael Gauland
  2010-11-16 15:11 ` [Babel] " Giovanni Ridolfi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Gauland @ 2010-11-15 20:30 UTC (permalink / raw)
  To: emacs-orgmode


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

I'm having trouble executing a shell script under Microsoft Windows using
org-babel. When I evaluate this:

    #+begin_src sh :results output
    echo Hello
    #+end_src

I get this:
    #+results:
    : Microsoft Windows XP [Version 5.1.2600]
    : (C) Copyright 1985-2001 Microsoft Corp.
    : 
    : c:\home\mike\notes-hg>More? 

It looks like the shell is invoked as expeced, but the 'echo' command does not
appear to be executed.  I've used babel to execute shell script under Linux, and
have used other babel languages (ditaa, plantuml, dot) under Windows, but this
is the first time I've tried the DOS shell.

Am I doing something obviously wrong, or is it time to fire up the debugger?

Any advice would be appreciated.

Regards,
Mike

[-- Attachment #1.2: Type: application/pgp-signature, Size: 194 bytes --]

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

_______________________________________________
Emacs-orgmode mailing list
Please 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] 4+ messages in thread

* Re: [Babel] Babel & DOS
  2010-11-15 20:30 Babel & DOS Michael Gauland
@ 2010-11-16 15:11 ` Giovanni Ridolfi
  2010-11-16 17:09 ` Eric Schulte
  2010-11-16 17:14 ` Eric Schulte
  2 siblings, 0 replies; 4+ messages in thread
From: Giovanni Ridolfi @ 2010-11-16 15:11 UTC (permalink / raw)
  To: Michael Gauland; +Cc: emacs-orgmode

Michael Gauland <mikelygee@gmail.com> writes:

> I'm having trouble executing a shell script under Microsoft Windows using
> org-babel. When I evaluate this:
>
>     #+begin_src sh :results output
>     echo Hello
>     #+end_src
>
> I get this:
>     #+results:
>     : Microsoft Windows XP [Version 5.1.2600]
>     : (C) Copyright 1985-2001 Microsoft Corp.
>     : 
>     : c:\home\mike\notes-hg>More? 

Just a cosmetic issue. If we can pass the argument " //nologo " to the shell
call [1]

the lines "Microsoft Windows XP [Version 5.1.2600]
          (C) Copyright 1985-2001 Microsoft Corp."

won't appear ;-)

cheers,
Giovanni

[1] many, Many, M A N Y, thanks to Russell Adams
   for his vimeo presentation
   http://vimeo.com/16533939

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

* Re: Babel & DOS
  2010-11-15 20:30 Babel & DOS Michael Gauland
  2010-11-16 15:11 ` [Babel] " Giovanni Ridolfi
@ 2010-11-16 17:09 ` Eric Schulte
  2010-11-16 17:14 ` Eric Schulte
  2 siblings, 0 replies; 4+ messages in thread
From: Eric Schulte @ 2010-11-16 17:09 UTC (permalink / raw)
  To: Michael Gauland; +Cc: emacs-orgmode

Hi Mike,

I have no access to a windows machine, so it is not surprising that the
windows shell doesn't work as expected.

All of the external Babel calls do use built in Emacs functions for
calling external programs all of which work cross platform (which is why
these other languages work on Windows despite no explicit Windows
testing or development), however I believe that the shell is simply too
OS-specific to expect things to "just work" as in the other languages.

If you do find ways to improve ob-sh.el for windows I would be happy to
fold such changes in.

Thanks -- Eric

Michael Gauland <mikelygee@gmail.com> writes:

> I'm having trouble executing a shell script under Microsoft Windows using
> org-babel. When I evaluate this:
> 
>     #+begin_src sh :results output
>     echo Hello
>     #+end_src
> 
> I get this:
>     #+results:
>     : Microsoft Windows XP [Version 5.1.2600]
>     : (C) Copyright 1985-2001 Microsoft Corp.
>     : 
>     : c:\home\mike\notes-hg>More? 
> 
> It looks like the shell is invoked as expeced, but the 'echo' command does not
> appear to be executed.  I've used babel to execute shell script under
> Linux, and
> have used other babel languages (ditaa, plantuml, dot) under Windows, but this
> is the first time I've tried the DOS shell.
> 
> Am I doing something obviously wrong, or is it time to fire up the debugger?
> 
> Any advice would be appreciated.
> 
> Regards,
> Mike
> _______________________________________________
> Emacs-orgmode mailing list
> Please 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] 4+ messages in thread

* Re: Babel & DOS
  2010-11-15 20:30 Babel & DOS Michael Gauland
  2010-11-16 15:11 ` [Babel] " Giovanni Ridolfi
  2010-11-16 17:09 ` Eric Schulte
@ 2010-11-16 17:14 ` Eric Schulte
  2 siblings, 0 replies; 4+ messages in thread
From: Eric Schulte @ 2010-11-16 17:14 UTC (permalink / raw)
  To: Michael Gauland; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 170 bytes --]

As a (possibly) interesting example of how little windows support I have
locally, here is how your email (presumably from a Windows machine)
appears in my email client.


[-- Attachment #2: widows-email.png --]
[-- Type: image/png, Size: 40830 bytes --]

[-- Attachment #3: Type: text/plain, Size: 1056 bytes --]


Michael Gauland <mikelygee@gmail.com> writes:

> I'm having trouble executing a shell script under Microsoft Windows using
> org-babel. When I evaluate this:
> 
>     #+begin_src sh :results output
>     echo Hello
>     #+end_src
> 
> I get this:
>     #+results:
>     : Microsoft Windows XP [Version 5.1.2600]
>     : (C) Copyright 1985-2001 Microsoft Corp.
>     : 
>     : c:\home\mike\notes-hg>More? 
> 
> It looks like the shell is invoked as expeced, but the 'echo' command does not
> appear to be executed.  I've used babel to execute shell script under
> Linux, and
> have used other babel languages (ditaa, plantuml, dot) under Windows, but this
> is the first time I've tried the DOS shell.
> 
> Am I doing something obviously wrong, or is it time to fire up the debugger?
> 
> Any advice would be appreciated.
> 
> Regards,
> Mike
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please 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] 4+ messages in thread

end of thread, other threads:[~2010-11-16 17:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-15 20:30 Babel & DOS Michael Gauland
2010-11-16 15:11 ` [Babel] " Giovanni Ridolfi
2010-11-16 17:09 ` Eric Schulte
2010-11-16 17:14 ` Eric Schulte

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).