Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
ssh zsh and one off commnad
- X-seq: zsh-users 17919
- From: Wawrzek Niewodniczanski <main@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: ssh zsh and one off commnad
- Date: Tue, 13 Aug 2013 13:00:39 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
I hope you can help me in this situation. The default shell on remote
machine is bash, but I would like from time to time run a zsh command or
rather set of command in a loop. My test command for some reason doesn't
work:
ssh remote "zsh -c 'for i (/usr/*(/)) {ls $i }'"
Every time I got output from my home directory and $i seems to be empty, I
welcome any suggestion (other than changing default script on remote
machine).
Thanks,
Wawrzek
--
Dr Wawrzyniec Niewodniczański or Wawrzek for short
PhD in Quantum Chemistry & MSc in Molecular Engineering
WWW: http://wawrzek.name E-MAIL: jobs@xxxxxxxxxxxx
Linux User #177124
Messages sorted by:
Reverse Date,
Date,
Thread,
Author