The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Operating Systems
> UNIX Help
|
Unix Command to delete files from Deep Freeze ThawSpace
Discuss Unix Command to delete files from Deep Freeze ThawSpace in the UNIX Help forum on Dev Shed. Unix Command to delete files from Deep Freeze ThawSpace UNIX Help forum discussing the Unix Operating System and all variants including Irix, Solarix, and AIX. Unix was designed as a true multi-user operating system.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

November 23rd, 2011, 12:29 PM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 4
Time spent in forums: 15 m 45 sec
Reputation Power: 0
|
|
Unix Command to delete files from Deep Freeze ThawSpace
Hello,
I currently work as a student lab assistant at a local medical university and I am trying to find a Unix command that I can send using Apple Remote Desktop that will delete all the contents of our Thaw Space on our computers. the directory for the Thaw Space should be /Volumes/My Documents however, every time I try the following command the contents are not deleted:
rm -rf /Volumes/My Documents
I'm not sure if I should be executing this with a sudo command or not but I haven't had much luck. Any help would be appreciated. Thanks
|

November 23rd, 2011, 03:24 PM
|
|
|
|
How is this file system/directory mounted, who owns the files/directories stored within, what user are you running the command as, and from where?
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
|

November 23rd, 2011, 05:13 PM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 4
Time spent in forums: 15 m 45 sec
Reputation Power: 0
|
|
|
I am running it from the Apple Remote Desktop as admin and it is my documents on all the computers are under /Volumes/My Documents I just want to be able to send a Unix command that will go in and remove everything from that directory from the host console.
|

November 23rd, 2011, 07:21 PM
|
|
|
|
I have no clue what the Apple Remote Desktop is, nor of any Apple products so am totally in the blind here? You suggest this is across multiple computers when you say "on all the computers". Do you have direct access to the directories or 'just' the ability to send remote commands to each required computer?
|

November 23rd, 2011, 09:23 PM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 4
Time spent in forums: 15 m 45 sec
Reputation Power: 0
|
|
|
I'm using Apple Remote Desktop to send Unix Commands to computers accross our network so it's like I'm doing the commands using terminal on a Mac OS X
|

November 24th, 2011, 04:49 AM
|
|
|
|
Ok,so what command would you need to use if you were sitting at each of the computers to perform this deletion, as what user would you need to run that command? Then arrange for your Remote Desktop to do the same thing.
|

November 24th, 2011, 06:39 AM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 4
Time spent in forums: 15 m 45 sec
Reputation Power: 0
|
|
|
exactly
|

November 24th, 2011, 06:28 PM
|
|
|
Quote: | Originally Posted by coreyryan316 exactly |
Then you have the answer?
|

November 25th, 2011, 02:36 PM
|
 |
Contributing User
|
|
|
|
Quote: | Originally Posted by coreyryan316 exactly |
Put single or double quotes around the directory name:
Code:
rm -rf '/Volumes/My Documents'

__________________
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|