From: Wawrzek Niewodniczanski <main@wawrzek.name>
To: Zsh Users <zsh-users@zsh.org>
Subject: ssh zsh and one off commnad
Date: Tue, 13 Aug 2013 13:00:39 +0100 [thread overview]
Message-ID: <CAC7-vpC7RY2rZ_phZD7ZeNxn2WM0YihLyo_eiL_+K61Et9uJbQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 673 bytes --]
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@wawrzek.name
Linux User #177124
next reply other threads:[~2013-08-13 12:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 12:00 Wawrzek Niewodniczanski [this message]
2013-08-13 12:38 ` Peter Stephenson
2013-08-13 13:30 ` Wawrzek Niewodniczanski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAC7-vpC7RY2rZ_phZD7ZeNxn2WM0YihLyo_eiL_+K61Et9uJbQ@mail.gmail.com \
--to=main@wawrzek.name \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).