Skip to main content
Question

Deleting Files in Network Users Home - Users onSeparatePartition...

  • March 1, 2010
  • 2 replies
  • 16 views

Forum|alt.badge.img+31

ha!

My preferred method is to see who owns the console. The currently
logged in user in OS X always owns the console no matter what. So just
set a variable like this

CurrentUser=ls -l /dev/console | awk '{ print $3 }'

Then call the variable in your command

rm -rf /Users/$CurrentUser/Library/Caches/Adobe InDesign

that is all you would need to do

2 replies

Forum|alt.badge.img+8
  • Contributor
  • March 1, 2010

Awesome! Thank you Tom and Craig... I was missing the piece on setting the
current user and I needed to make a small modification to the path to point
to the partition with the home folder. So I ended up with:

CurrentUser=ls -l /dev/console | awk '{ print $3 }'
rm -rf Volumes/Storage/Users/$CurrentUser/Library/Caches/Adobe InDesign

Thanks again!

Robb


Forum|alt.badge.img+21
  • Contributor
  • March 1, 2010

See, I knew that Tom guy would pull through...I just got back to my desk.

Craig E