[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] script with ssh and filenames with spaces
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] script with ssh and filenames with spaces |
Date: |
Wed, 17 Jul 2013 16:52:11 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, Jul 17, 2013 at 08:42:17PM +0000, address@hidden wrote:
> I wish to ssh this command to several hosts:
> ls -alst "dir_with_spaces"
for host in "address@hidden"; do
ssh "$host" bash <<-'EOF'
ls -alst "your directory"
EOF
done
The - in front of the here document's delimiter allows indentation with
tabs only (not spaces).
I Cc'ed address@hidden because that's more appropriate for this
question.
- Re: [Help-bash] script with ssh and filenames with spaces,
Greg Wooledge <=
- Re: [Help-bash] script with ssh and filenames with spaces, gscantlen, 2013/07/17
- Re: [Help-bash] script with ssh and filenames with spaces, Matthew Cengia, 2013/07/17
- Message not available
- Re: [Help-bash] script with ssh and filenames with spaces, Matthew Cengia, 2013/07/18
- Re: [Help-bash] script with ssh and filenames with spaces, Matthew Cengia, 2013/07/18
- Re: [Help-bash] script with ssh and filenames with spaces, Greg Wooledge, 2013/07/18
- Re: [Help-bash] script with ssh and filenames with spaces, Matthew Cengia, 2013/07/18
- Re: [Help-bash] script with ssh and filenames with spaces, Greg Wooledge, 2013/07/18
- Re: [Help-bash] script with ssh and filenames with spaces, gscantlen, 2013/07/18