From owner-freebsd-questions@FreeBSD.ORG Fri May 26 15:14:58 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F20116A436 for ; Fri, 26 May 2006 15:14:58 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66E5143D4C for ; Fri, 26 May 2006 15:14:57 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id D97F16000; Fri, 26 May 2006 11:14:56 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YUJuPKV4MnuP; Fri, 26 May 2006 11:14:56 -0400 (EDT) Received: from [192.168.1.251] (pool-68-160-242-211.ny325.east.verizon.net [68.160.242.211]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id DD3A15DF3; Fri, 26 May 2006 11:14:55 -0400 (EDT) Message-ID: <44771B6C.7070801@mac.com> Date: Fri, 26 May 2006 11:14:52 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Ensel Sharon References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: remote file moves, over SSH, with wildcards ... help needed. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2006 15:15:00 -0000 Ensel Sharon wrote: > (FreeBSD 6.0-RELEASE) > > I cannot move a file, over ssh, with wildcards: > > # ssh user@host.com mv /dir/file*.wav /dir2 > ssh: No match. > > Ok, so I quote it: > > # ssh user@host.com mv "/dir/file*.wav" /dir2 > Password: > mv: rename /dir/file*.wav to /dir2/*.wav: No such file or directory > > I even tried single quoting both paths, and just double quoting the > file*.wav > > Nothing works. > > Is it possible to move with wildcards over ssh ? Try: ssh user@host.com /bin/sh "mv /dir/file*.wav /dir2" -- -Chuck