From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24558 invoked from network); 23 Mar 2004 09:37:24 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Mar 2004 09:37:24 -0000 Received: (qmail 19035 invoked by alias); 23 Mar 2004 09:37:01 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7238 Received: (qmail 19021 invoked from network); 23 Mar 2004 09:37:00 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 23 Mar 2004 09:37:00 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 23 Mar 2004 9:37:0 -0000 Received: (qmail 19991 invoked from network); 23 Mar 2004 09:37:00 -0000 Received: from mail02.hansemerkur.de (217.6.199.140) by a.mx.sunsite.dk with SMTP; 23 Mar 2004 09:36:50 -0000 Received: from gateway.hansemerkur.de (unknown [217.6.199.129]) by mail02.hansemerkur.de (Postfix) with SMTP id E9532274F3 for ; Tue, 23 Mar 2004 10:36:22 +0100 (CET) Received: from fs-prx1.hansemerkur.de (unverified) by mailsweeper01.hansemerkur.de (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Tue, 23 Mar 2004 10:36:09 +0100 Received: from DOM3-MTA by fs-prx1.hansemerkur.de with Novell_GroupWise; Tue, 23 Mar 2004 10:36:09 +0100 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.0 Date: Tue, 23 Mar 2004 10:35:50 +0100 From: "Michael Dettmer" To: Subject: Z-shell and secure shell (Problems with aliases remotely called) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-ec006e7a-4914-4d4f-b3e5-0e4014c0e5c6" X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.6 required=6.0 tests=HTML_20_30,HTML_MESSAGE, MIME_BOUND_NEXTPART autolearn=no version=2.63 X-Spam-Hits: 0.6 ------=_NextPartTM-000-ec006e7a-4914-4d4f-b3e5-0e4014c0e5c6 Content-Type: multipart/alternative; boundary="=_54757919.A0C1A454" --=_54757919.A0C1A454 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi there, aliases used with trailing "parameters" don't seem to work if called remotely (via rsh or ssh). Provided you defined an alias for user "remoteUser" on Host "remoteMachine" which resolves to "/usr/local/bin/myScript fixedParameter". This is the output of a sample session: [root@localMachine] /export/home/root # su - localUser -c "ssh -i myKey remoteUser@remoteMachine '. ~/.zprofile;myAlias parameter'" zsh: myAlias not found [root@localMachine] /export/home/root # Even if you prefix the alias call with "=" (equal sign) it doesn't work although the error message differs. [root@localMachine] /export/home/root # su - localUser -c "ssh -i myKey remoteUser@remoteMachine '. ~/.zprofile;=myAlias parameter'" zsh: no such file or directory: /usr/local/bin/myScript fixedParameter [root@localMachine] /export/home/root # Is there a way to fix that? Thanks in advance --=_54757919.A0C1A454-- ------=_NextPartTM-000-ec006e7a-4914-4d4f-b3e5-0e4014c0e5c6--