all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Иван Трусков" <trus19@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Evaluating C code block on remote host
Date: Tue, 28 Mar 2017 16:31:49 +0300	[thread overview]
Message-ID: <CAEc-S=-VX1B4ftvjyQRUDFVfYrnkPQGpBorvoS-m8wxMArSz_A@mail.gmail.com> (raw)

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

I am working on windows machine. I have last org version (from february
2017).
I have a remote host accessible by putty, where i have created org file of
the following contents:

#+TITLE C language things

* Simple hello-world program

#+NAME hello world on C
#+BEGIN_SRC C :dir /pscp:tcl:/home/tc/development :main no
  #include <stdio.h>

  int main()
  {
      printf("Hello, world!");
      return 0;
  }
#+END_SRC

where tcl is name of saved putty configuration

When i evaluate codefragment, overall result is a failure (however, it is
not a crash, and toggling debug on yields no backtrace)
Here is what is output to *Message* buffer:

executing C code block...
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iL0.c to
/pscp:tcl:/tmp/C-src-4816VBu.c...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iL0.c to
/pscp:tcl:/tmp/C-src-4816VBu.c...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816hfJ.exe to
/pscp:tcl:/tmp/C-bin-4816UVD.exe...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816hfJ.exe to
/pscp:tcl:/tmp/C-bin-4816UVD.exe...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816upP.c to
/pscp:tcl:/tmp/C-src-4816VBu.c...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816upP.c to
/pscp:tcl:/tmp/C-src-4816VBu.c...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816I-b to
/pscp:tcl:/tmp/ob-input-48167zV...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816I-b to
/pscp:tcl:/tmp/ob-input-48167zV...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iSo to
/pscp:tcl:/tmp/ob-error-4816VIi...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iSo to
/pscp:tcl:/tmp/ob-error-4816VIi...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816vcu to
/pscp:tcl:/tmp/ob-input-48167zV...failed
byte-code: Spawning child process: invalid argument

What is going on there? What does error in the end mean? Most importantly,
is code block being evaluated on remote host at all? Can output of
org-babel commands be turned on to get that information?

[-- Attachment #2: Type: text/html, Size: 2885 bytes --]

                 reply	other threads:[~2017-03-28 13:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEc-S=-VX1B4ftvjyQRUDFVfYrnkPQGpBorvoS-m8wxMArSz_A@mail.gmail.com' \
    --to=trus19@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.