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:
Thu, 18 Jul 2013 08:02:37 -0400
User-agent:
Mutt/1.4.2.3i
On Thu, Jul 18, 2013 at 02:04:25PM +1000, Matthew Cengia wrote:
> I think Greg was probably onto something with his here-doc, but I can't
> get that to work either.
Really? Works for me.
imadev:~$ ssh vandev bash <<-'EOF'
> mkdir "/tmp/foo bar"
> ls -ld "/tmp/foo bar"
> EOF
address@hidden's password:
mkdir: cannot create /tmp/foo bar: File exists
-rw-r--r-- 1 wooledg pgmr 0 Aug 22 2002 /tmp/foo bar
Oops. I already had a file by that name. ;-)
What, exactly, did you try, and what was the result?