zsh-users
 help / color / mirror / code / Atom feed
* Z-shell and secure shell (Problems with aliases remotely called)
@ 2004-03-23  9:35 Michael Dettmer
  0 siblings, 0 replies; only message in thread
From: Michael Dettmer @ 2004-03-23  9:35 UTC (permalink / raw)
  To: zsh-users


[-- Attachment #1.1: Type: text/plain, Size: 887 bytes --]

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-23  9:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-23  9:35 Z-shell and secure shell (Problems with aliases remotely called) Michael Dettmer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).