New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Cant find remote directory using find


Post Reply New Thread Subscribe

 
Thread Tools
JeremyRaven

 
Member Since: Oct 17, 2012
Posts: 2
JeremyRaven is on a distinguished road

JeremyRaven is offline
Im wanting to copy the directories inside a particular directory (rather than its contents) which resides on a server using terminal. The following code is perfect or near enough for what I want...

find "PATH_TO_ORIG_DIR" -type d -depth -print | cpio -pd "PATH_TO_CURRENT DIR"

To grab the actual path of both directories, I just dumped the folder into textEdit which gives me the path in plain text, then I copy and paste this into the command above. For a directory that exists locally I have no problems, but for one that exists on "/Volumes/Server...." terminal reports the directory doesnt exists.

I dont think its a firewall because I can navigate using finder to the same directory and I am also currently connected to this directory. The path itself mirrors exactly the same one that reads at the top of the finder window of the directory I have navigated to myself.

Any ideas?
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,737
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is online now
Can you do a "ls /Volumes/Servers/<path name>" where <path name> is the directory of your choice and have it show a valid directory with its contents?

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks
JeremyRaven

 
Member Since: Oct 17, 2012
Posts: 2
JeremyRaven is on a distinguished road

JeremyRaven is offline
It insists the directory does not exist, however I can cd into the directory. Im wondering if spaces in the path name need backslashing? I wouldve thought wrapping the path around quotations would make backslash redundant. As luck would have it right the backslash key on my keyboard doesnt work so I cant conveniently check this right now! Having said that the path_to_ folder on my local drive has spaces also and terminal doesnt seem to mind.

What is your opinion?
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,737
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is online now
Yes spaces need to be backslashed, but using the quotes should get around that. Not sure why it would having a problem with that..

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks

Post Reply New Thread Subscribe


« i want to sort my pictures in iphoto by date | Macintosh HD out of disk space???!?!? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Remote Management, Access, etc kodishj OS X - Operating System 3 05-19-2012 03:33 PM
Find Installation Directory jamesmerr OS X - Operating System 1 11-11-2009 11:49 PM
/usr directory - can't find romsok OS X - Operating System 1 10-17-2009 01:57 PM
help me convert something, please. krrose27 Switcher Hangout 4 05-25-2007 03:10 AM

All times are GMT -4. The time now is 02:38 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?