Re: deleting with wildcards over ssh ... how ?

2006-08-30 Thread Matteo Pillon
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.

Re: deleting with wildcards over ssh ... how ?

2006-08-30 Thread John Webster
--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

Re: deleting with wildcards over ssh ... how ?

2006-08-30 Thread Bill Moran
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

deleting with wildcards over ssh ... how ?

2006-08-30 Thread Ensel Sharon
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