From: Daniel Pittman <daniel@rimspace.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Newbie: Submit whole buffer and capture output
Date: Tue, 18 Dec 2007 17:27:14 +1100 [thread overview]
Message-ID: <87zlw81prx.fsf@enki.rimspace.net> (raw)
In-Reply-To: u7ijck4nq.fsf@gnu.org
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
next prev parent reply other threads:[~2007-12-18 6:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 14:33 Newbie: Submit whole buffer and capture output Matthew.Pettis
2007-12-18 4:28 ` Eli Zaretskii
2007-12-18 6:27 ` Daniel Pittman [this message]
2007-12-19 2:37 ` Matthew.Pettis
2008-03-19 1:00 ` Xavier Maillard
2008-03-19 17:31 ` Joel J. Adamson
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zlw81prx.fsf@enki.rimspace.net \
--to=daniel@rimspace.net \
--cc=help-gnu-emacs@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.
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).