#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    4
    Rep Power
    0

    Cool 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
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,481
    Rep Power
    1752
    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
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    4
    Rep 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.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,481
    Rep Power
    1752
    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?
    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
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    4
    Rep 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
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,481
    Rep Power
    1752
    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.
    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
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    4
    Rep Power
    0
    exactly
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,481
    Rep Power
    1752
    Originally Posted by coreyryan316
    exactly
    Then you have the answer?
    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
  16. #9
  17. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2006
    Posts
    859
    Rep Power
    388

    Cool


    Originally Posted by coreyryan316
    exactly
    Put single or double quotes around the directory name:
    Code:
    rm -rf '/Volumes/My Documents'

IMN logo majestic logo threadwatch logo seochat tools logo