LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2010, 12:18 PM   #1
Brian_Hayward
LQ Newbie
 
Registered: May 2009
Posts: 15

Rep: Reputation: 0
Can't copy files from directory with "&" symbol in directory name


I am using my media server as my podcast collector. I am in the process of learning the ins and outs of NFS so i can mount a NFS directory and transfer my podcasts from server to player. For now i am using scp to transfer podcasts from server to desktop then to player. The problem is the path to the directory of one of the podcasts is /home/user/gpodder-downloads/The BILL&TIMMY Show Podcast. whenever i try and run my scp command it fails because it thinks that TIMMY is a script i want to run in the background. I have tried to back-slash escape the character, i've tried single quoting and double quoting the character and i still get the same problem. Any suggestions, comments or ideas would be GREATLY appreciated. as it sits now i have to move all podcasts to another directory and then transfer them to my desktop...but i would like to transfer the podcasts without un-necessary steps. Thanks.
 
Old 03-18-2010, 12:19 PM   #2
Brian_Hayward
LQ Newbie
 
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
forgot to mention i am running Ubuntu 9.10 on my media server.
 
Old 03-18-2010, 12:26 PM   #3
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 78
rename the directory to BILL_AND_TIMMY
 
Old 03-18-2010, 12:31 PM   #4
Brian_Hayward
LQ Newbie
 
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bret381 View Post
rename the directory to BILL_AND_TIMMY
if memory servers me, i can't rename the directory; it breaks the directory link in gpodder and i will either get an error when downloading my podcasts or gpodder will just create a new directory with the name it wants.
 
Old 03-18-2010, 12:38 PM   #5
sd||
Member
 
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89

Rep: Reputation: 18
escape character::


did you used:

Quote:
"one\&two" for "one&two"
???
 
Old 03-18-2010, 12:42 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by sd|| View Post
escape character::


did you used:

???
Or even "one&two" for one&two ;}
 
Old 03-18-2010, 12:46 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Its should work if you both quote *and* escape:
Code:
scp -r somehost:'foo\&bar' .
Evo2.
 
Old 03-18-2010, 03:10 PM   #8
sd||
Member
 
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89

Rep: Reputation: 18
ohh @Tinkster for pointing me out! i never thought of it!
 
Old 03-19-2010, 11:35 AM   #9
Brian_Hayward
LQ Newbie
 
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
Its should work if you both quote *and* escape:
Code:
scp -r somehost:'foo\&bar' .
Evo2.
did not try this, one of the many combinations i didn't try.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Permission denied" and "recursive directory loop" when searching for string in files mack1e Linux - Newbie 5 06-12-2008 08:38 AM
Useful article: "Linux File & Directory Permission Mistakes" sundialsvcs Linux - Security 1 08-15-2005 12:50 PM
VMware & "directory of C header files" pacranch Amigo 12 05-14-2005 04:39 PM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 07:05 AM
wine - "can't open directory" & STATUS_UNSUCCESSFUL Avatar Linux - Software 0 06-14-2004 10:25 AM


All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration