From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Subhan Michael Tindall Newsgroups: gmane.emacs.help Subject: RE: How automatically/immediately run command in ansi-term *with* *arguments* ? Date: Tue, 10 Feb 2015 18:20:26 +0000 Message-ID: <4dba06efb16b466296d78e95323b6d51@fcmailsvr3.familycareinc.org> References: <18d0a858-7d2b-42de-bc61-8e16ff376569@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423593012 26279 80.91.229.3 (10 Feb 2015 18:30:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2015 18:30:12 +0000 (UTC) To: 'Barry Margolin' , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 10 19:30:06 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YLFZV-0000MV-Sv for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2015 19:30:06 +0100 Original-Received: from localhost ([::1]:41221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLFZV-0008IK-6K for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2015 13:30:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLFQG-0008TH-7M for help-gnu-emacs@gnu.org; Tue, 10 Feb 2015 13:20:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLFQC-0000P8-ND for help-gnu-emacs@gnu.org; Tue, 10 Feb 2015 13:20:32 -0500 Original-Received: from outbound.familycareinc.org ([207.170.205.147]:64542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLFQC-0000Ox-Ii for help-gnu-emacs@gnu.org; Tue, 10 Feb 2015 13:20:28 -0500 X-IronPort-AV: E=Sophos;i="5.09,551,1418112000"; d="scan'208";a="2705318" Original-Received: from fcmailsvr3.familycareinc.org ([10.0.1.3]) by fcspamapp1.familycareinc.org with ESMTP; 10 Feb 2015 10:20:27 -0800 Original-Received: from FCMAILSVR3.familycareinc.org (10.0.1.3) by fcmailsvr3.familycareinc.org (10.0.1.3) with Microsoft SMTP Server (TLS) id 15.0.995.29; Tue, 10 Feb 2015 10:20:26 -0800 Original-Received: from FCMAILSVR3.familycareinc.org ([fe80::5cb2:1190:1d40:d51e]) by fcmailsvr3.familycareinc.org ([fe80::5cb2:1190:1d40:d51e%18]) with mapi id 15.00.0995.028; Tue, 10 Feb 2015 10:20:26 -0800 Thread-Topic: How automatically/immediately run command in ansi-term *with* *arguments* ? Thread-Index: AQHQRB+2pbccDQpZRkyZGV4PTnRZDZzoeV3ugAG6jzA= In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-vipre-scanned: 058FFE0A00922C058FFF57 x-originating-ip: [10.0.1.170] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 207.170.205.147 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102618 Archived-At: Kind of a long shot, & I'm not set up to test it, But maybe you could put program arg1 arg2... in back-ticks? `program arg1 a= rg2` to force the grouping into a single 'program'? > -----Original Message----- > From: help-gnu-emacs-bounces+subhant=3Dfamilycareinc.org@gnu.org > [mailto:help-gnu-emacs-bounces+subhant=3Dfamilycareinc.org@gnu.org] On > Behalf Of Barry Margolin > Sent: Monday, February 09, 2015 7:51 AM > To: help-gnu-emacs@gnu.org > Subject: Re: How automatically/immediately run command in ansi-term > *with* *arguments* ? > = > In article <18d0a858-7d2b-42de-bc61-8e16ff376569@googlegroups.com>, > Chris Seberino wrote: > = > > I'm trying to set some shortcuts for shell commands. I want to use > > ansi-term as it has colors and other niceties not found in shell if I > > use shell-command.... > > > > This works... > > > > (ansi-term 'some_command_here') > > > > This does *NOT*... > > > > (ansi-term 'some_command_here arg1 arg2') > > > > How get arguments to work? This would be quite a nice replacement for > > shell-command if it could for people that like/need ansi-term. > = > The argument to ansi-term is a program, not a command. There doesn't > seem to be a way to provide arguments to the program. Write a script that > does what you want, and put that as the program argument. > = > -- > Barry Margolin, barmar@alum.mit.edu > Arlington, MA > *** PLEASE post questions in newsgroups, not directly to me *** This message is intended for the sole use of the individual and entity to w= hich it is addressed and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email and delete the message. Thank you.