From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stack Newsgroups: gmane.emacs.help Subject: Re: Writing an interactive function to accept a string argument, then call a Python script? Date: Fri, 09 Feb 2007 14:18:19 +0000 Message-ID: <87y7n7l8ic.fsf@main.mainworld> References: <1171026496.713032.169290@v33g2000cwv.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171032044 29678 80.91.229.12 (9 Feb 2007 14:40:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Feb 2007 14:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 09 15:40:35 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HFWvR-0007dQ-UQ for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Feb 2007 15:40:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFWvR-0003J3-A7 for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Feb 2007 09:40:33 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news-peer-lilac.gradwell.net!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:onvgSr3HFiwz5HWw88OuYJrXd7E= Original-Lines: 15 Original-NNTP-Posting-Host: 81.187.28.241 Original-X-Trace: 1171030645 news.aaisp.net.uk 763 81.187.28.241:38474 Original-X-Complaints-To: aaispnews-abuse@gradwell.net Original-Xref: shelby.stanford.edu gnu.emacs.help:145410 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41015 Archived-At: "Endless Story" writes: > 1) In the minibuffer, prompt me for a string to enter. > 2) Feed the string as the sole argument to the Python script (let's > say it's at /home/me/myscript.py). > 3) Display the return value in the minibuffer Try M-x shell-command Cheers, Stack -- "This is no longer a slum neighbourhood. I haven't heard of a Cubs fan being shot in a long time." - Anonymous Wrigley Field Neighbour, Chicago, IL