help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: Submit whole buffer and capture output


From: Daniel Pittman
Subject: Re: Newbie: Submit whole buffer and capture output
Date: Tue, 18 Dec 2007 17:27:14 +1100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:
>> From: "Matthew.Pettis@gmail.com" <Matthew.Pettis@gmail.com>
>> Date: Mon, 17 Dec 2007 06:33:28 -0800 (PST)
>> 
>> I code perl scripts, and I want to find out how to submit a whole
>> buffer (with a shebang at top) to the shell and capture the output
>> somewhere in Emacs -- probably the *command shell* window, which I
>> know nothing about other than the name.
>
> You want "M-|".  Invoke Perl in a way that makes it read the script
> from its standard input.

...alternately, after saving the script to disk, one of:

  M-x compile perl ./myscript.pl
  M-! perl ./myscript.pl

Those might do what you want.

Regards,
        Daniel
-- 
Daniel Pittman <daniel@cybersource.com.au>           Phone: 03 9428 6922
1/130-132 Stawell St, Richmond              Web: http://www.cyber.com.au
Cybersource: Australia's Leading Linux and Open Source Solutions Company





reply via email to

[Prev in Thread] Current Thread [Next in Thread]