From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [Babel] Executing sh code within sessions Date: Wed, 17 Nov 2010 13:57:29 +0100 Message-ID: <80y68sf6py.fsf@mundaneum.com> References: <80tyjxbac3.fsf@mundaneum.com> <80oca4rs9e.fsf@mundaneum.com> <877hgrqwek.fsf@gmail.com> <80eiayyilf.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, > "Eric Schulte" wrote: >> Yes, I've noticed the shell session evaluation problems as well. I think >> one possible solution is for us to move from the current schema of echoi= ng >> a babel-specific marker to indicate that evaluation has completed (which >> isn't working very well and is fairly ugly to boot) and move towards >> something more like what Dan has done with R, where the output is written >> to a file, and we check for that file to be created to signal the end of >> session based evaluation. > > Will that handle ssh remote execution? I still have no clue to do that via > the sh code blocks, but that's what I'm targetting to. Therefore, the need > for a session.: > > 1. code block to open the ssh connection > 2. code block with some code > 3. code block with other code > 4. code block with logout > > >> This is certainly something that needs to be addressed, however I for one >> won't have any time over the next week (I'm attending a conference). >> >> Rest assured this issue is in our inbox. :) > > Thanks a lot for your continuous support. Just for your information... After having chased a problem for making Tramp work -- that was caused by an overriden PS1 setting --, here is how Tramp does: Tramp needs a special prompt, in order to distinguish command output an= d, hmm, the prompt. It does set PS1 to '$ ' (and $TERM to 'dumb'). Don't know if this could be a solution here: set the prompt (instead of letting it customizable)? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode