From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21334 invoked from network); 11 Jan 2000 23:24:36 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Jan 2000 23:24:36 -0000 Received: (qmail 26259 invoked by alias); 11 Jan 2000 23:24:20 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2861 Received: (qmail 26252 invoked from network); 11 Jan 2000 23:24:19 -0000 Date: Mon, 10 Jan 2000 23:49:01 -0500 (EST) From: Scott Lipcon To: zsh-users@sunsite.auc.dk Subject: remote function problems. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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