On Wed, Aug 30, 2006 at 11:06:39AM -0400, Ensel Sharon wrote:
> I want to delete some remote files with a wildcard, running 'rm' over ssh.
> [...]
> So what is the _right_ way to do this ?
ssh [EMAIL PROTECTED] 'sh -c "rm -rf "/some/testdir/*"'
As * has to be expanded before is sent to rm.
Bye.
--On Wednesday, August 30, 2006 11:06:39 -0400 Ensel Sharon <[EMAIL PROTECTED]>
wrote:
>
> I want to delete some remote files with a wildcard, running 'rm' over ssh.
>
> The obvious syntax doesn't work at all - it doesn't even make an ssh
> connection - I think it is interpreting the wildcard l
In response to Ensel Sharon <[EMAIL PROTECTED]>:
>
> I want to delete some remote files with a wildcard, running 'rm' over ssh.
>
> The obvious syntax doesn't work at all - it doesn't even make an ssh
> connection - I think it is interpreting the wildcard locally:
>
> # ssh [EMAIL PROTECTED] rm
I want to delete some remote files with a wildcard, running 'rm' over ssh.
The obvious syntax doesn't work at all - it doesn't even make an ssh
connection - I think it is interpreting the wildcard locally:
# ssh [EMAIL PROTECTED] rm -rf /some/testdir/*
ssh: No match.
Then, these combinations of