From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 17:23:19 2005 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 29AA116A41F for ; Thu, 20 Oct 2005 17:23:19 +0000 (GMT) (envelope-from willmaier@ml1.net) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id B847D43D5A for ; Thu, 20 Oct 2005 17:23:18 +0000 (GMT) (envelope-from willmaier@ml1.net) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 576E2CD59C2 for ; Thu, 20 Oct 2005 13:23:17 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Thu, 20 Oct 2005 13:23:17 -0400 X-Sasl-enc: CMFbCK1FDirfFHBXJRnzzqus7Al94ufqjb4o7wjTFEiU 1129828996 Received: from merkur (host-66-202-74-42.choiceone.net [66.202.74.42]) by frontend2.messagingengine.com (Postfix) with ESMTP id 00192570147 for ; Thu, 20 Oct 2005 13:23:15 -0400 (EDT) Received: by merkur (nbSMTP-1.00) for uid 1000 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) willmaier@ml1.net; Thu, 20 Oct 2005 12:23:19 -0500 (CDT) Date: Thu, 20 Oct 2005 12:23:03 -0500 From: Will Maier To: freebsd-questions@freebsd.org Message-ID: <20051020172303.GW3679@localdomain> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040907i Subject: Re: sftp and escape characters 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: Thu, 20 Oct 2005 17:23:19 -0000 On Thu, Oct 20, 2005 at 10:01:45AM -0700, ross wrote: > my prompt copy and pasted. > sftp> put "/mnt/pammy/music/Nadasurf-\ Popular.mp3" /files/upload > Bad escaped character ' ' > sftp> put '/mnt/pammy/music/Nadasurf-\ Popular.mp3' /files/upload > Bad escaped character ' ' If you're putting the filename in quotes, you don't need to escape the space (hence the 'Bad escape' error). ~ % touch "this is a test" ~ % sftp $SERVER Connecting to merk... sftp> put this\ is\ a\ test File "this\\" not found. sftp> put "this is a test" Uploading this is a test to /home/$USER/this is a test this is a test 100% 0 0.0KB/s 00:00 sftp> -- o--------------------------{ Will Maier }--------------------------o | jabber:..wcmaier@jabber.ccc.de | email:..........wcmaier@ml1.net | | \.........wcmaier@cae.wisc.edu | \..........wcmaier@cae.wisc.edu | *------------------[ BSD Unix: Live Free or Die ]------------------*