Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: remote function problems.
- X-seq: zsh-users 2862
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Scott Lipcon" <slipcon@xxxxxxxxxxxxxxxx>, <zsh-users@xxxxxxxxxxxxxx>
- Subject: RE: remote function problems.
- Date: Wed, 12 Jan 2000 10:29:28 +0300
- Importance: Normal
- In-reply-to: <Pine.GSO.3.96.1000110234329.25844A-100000@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
You most probably have call to stty in your .zshrc or /etc/zshrc (that is being
executed for every interactive shell; and you force your shell to be interactive
with -i option).
1. Do not use -i option. Why do you need it?
2. Wrap call to stty around
if [[ -t 0 ]]; then
stty ...
fi
/andrej
> -----Original Message-----
> From: Scott Lipcon [mailto:slipcon@xxxxxxxxxxxxxxxx]
> Sent: Tuesday, January 11, 2000 7:49 AM
> To: zsh-users@xxxxxxxxxxxxxx
> Subject: remote function problems.
>
>
> Hello,
>
> I'm trying to write some function to distribute my config files among all
> the machines I use. For various reasons, I dont want to use rsync or CVS.
> I want to "push" the files out from my main machine, so I have a function
> which tars them up and scp's them to the remote machine (prompting for a
> password if necessary)
>
> I also have a function which installs the config files properly, from a
> tar file in my home directory. The problem is now executing that function
> remotely, via ssh.
>
> The best I've come up with is:
>
> $ ssh remote-host zsh -i -c function
>
> which runs the function, but also outputs:
>
> stty: standard input: Invalid argument
>
> is there a way to do this better?
>
> Thanks,
>
> Scott
>
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author