Skip to main content
Solved

Script Help To Delete a Folder


Forum|alt.badge.img+5

I need to delete the following folder.

/Library/StartupItems/ES1000Service

Can someone help me out with creating a script to do this? The ones that i have tried do not seem to work.

Thanks,
Jim

Best answer by krichterjr

Since this is just a "one-liner", I would just copy + paste this into the "run command" field of the "Advanced" section where you create a policy. You could create an actual script and upload it to Casper but it's probably more work than what it's worth.

rm -R /Library/StartupItems/ES1000Service
View original
Did this topic help you find an answer to your question?

12 replies

Forum|alt.badge.img+12
  • Employee
  • 128 replies
  • February 7, 2014

If you run through Terminal.

sudo rm -R /Library/StartupItems/ES1000Service

If you run it through Casper you don't need sudo as it will automatically run as root.


Forum|alt.badge.img+5
  • Author
  • Contributor
  • 48 replies
  • February 7, 2014

Thanks if I want to run it in casper dont I need the bin bash in front?


Forum|alt.badge.img+21
  • Contributor
  • 1028 replies
  • February 7, 2014

I like to give the full path to commands as well as to files. This assumes your partitions never get renamed from Macintosh HD. Always test.

#!/bin/sh

/bin/rm -rf /Volumes/Macintosh HD/Library/StartupItems/ES1000Service/

Forum|alt.badge.img+12
  • Employee
  • 128 replies
  • Answer
  • February 7, 2014

Since this is just a "one-liner", I would just copy + paste this into the "run command" field of the "Advanced" section where you create a policy. You could create an actual script and upload it to Casper but it's probably more work than what it's worth.

rm -R /Library/StartupItems/ES1000Service

Forum|alt.badge.img+5
  • Author
  • Contributor
  • 48 replies
  • February 7, 2014

Thanks immaging some new computers for Graphics and we noticed that one of the blasted Fiery packages creates this silly folder. In place of redoing everything I am just adding the post imaging script for the rest of the macs, and then pushing this script to the ones we deployed already.

It seems to have worked on so far.


Forum|alt.badge.img+8
  • Contributor
  • 41 replies
  • February 10, 2014

Why not just use the "Files and Folders" object tin a policy to delete the folder?


donmontalvo
Forum|alt.badge.img+36
  • Legendary Contributor
  • 4293 replies
  • March 30, 2015

@JimAllsop I posted this concern to the EFI forum and received a private response, hopefully we'll see an updated installer that addresses some concerns.

Fiery Command Workstation 5.7 concerns (OS X)


donmontalvo
Forum|alt.badge.img+36
  • Legendary Contributor
  • 4293 replies
  • March 31, 2015

FYI...EFI responded to the thread. ;)


donmontalvo
Forum|alt.badge.img+36
  • Legendary Contributor
  • 4293 replies
  • April 9, 2015

donmontalvo
Forum|alt.badge.img+36
  • Legendary Contributor
  • 4293 replies
  • April 9, 2015

Woah, that was quick - thanks EFI!!!

Ether beer for EFI!!!


donmontalvo
Forum|alt.badge.img+36
  • Legendary Contributor
  • 4293 replies
  • April 21, 2015

gskibum
Forum|alt.badge.img+13
  • Valued Contributor
  • 288 replies
  • May 14, 2015

Don, thank you for pursuing that. Fiery software definitely makes me go grrrrrrrr.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings