From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Braennstroem Newsgroups: gmane.emacs.help Subject: dired copy marked files in xterm Date: Sun, 24 Feb 2008 20:26:22 +0100 Organization: www.braennstroem.de Message-ID: Reply-To: f.braennstroem@gmx.de NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1203885646 12404 80.91.229.12 (24 Feb 2008 20:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2008 20:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 24 21:41:11 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JTNek-00018Y-Av for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Feb 2008 21:41:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTNeE-0005sz-JQ for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Feb 2008 15:40:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-koe1.dfn.de!tamarack.fernuni-hagen.de!news.fernuni-hagen.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: stgt-4dbe1adb.pool.einsundeins.de Original-X-Trace: tamarack.fernuni-hagen.de 1203881182 14308 77.190.26.219 (24 Feb 2008 19:26:22 GMT) Original-X-Complaints-To: newsadmin@fernuni-hagen.de Original-NNTP-Posting-Date: Sun, 24 Feb 2008 19:26:22 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Xref: shelby.stanford.edu gnu.emacs.help:156453 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51826 Archived-At: Hi, I would like to use the system 'cp' function in an xterm to copy marked files in dired. Right now, this small function works with the current file: (defun tacopybackground(var1) "Copy" (interactive) (call-process-shell-command (concat "xterm -e 'cp -R "(dired-get-filename)" " (dired-dwim-target-directory) " &'")) ) but obviously it needs some kind of loop or different approach for marked files!?: (call-process-shell-command (concat "xterm -e 'cp -R "(dired-get-marked-files)" " (dired-dwim-target-directory) " &'")) Does anyone have an idea or any suggestion? At the end I would actually use a similar command to transfer several large (up to 2-3GB) files to an remote machine using scp. Tramp is unfortunately to slow... Greetings! Fabian