[Top][All Lists]

[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 <address@hidden> writes:
>> From: "address@hidden" <address@hidden>
>> 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 ./
  M-! perl ./

Those might do what you want.

Daniel Pittman <address@hidden>           Phone: 03 9428 6922
1/130-132 Stawell St, Richmond              Web:
Cybersource: Australia's Leading Linux and Open Source Solutions Company

reply via email to

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