Script Help To Delete a Folder

JimAllsop
New Contributor

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

1 ACCEPTED SOLUTION

krichterjr
Contributor

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 solution in original post

12 REPLIES 12

krichterjr
Contributor

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.

JimAllsop
New Contributor

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

ernstcs
Contributor III

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/

krichterjr
Contributor

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

JimAllsop
New Contributor

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.

c0n0r
Contributor

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

donmontalvo
Esteemed Contributor III

@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)

--
https://donmontalvo.com

donmontalvo
Esteemed Contributor III

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

--
https://donmontalvo.com

donmontalvo
Esteemed Contributor III

Hoping EFI responds sooner than later...

--
https://donmontalvo.com

donmontalvo
Esteemed Contributor III

Woah, that was quick - thanks EFI!!!

Ether beer for EFI!!!

--
https://donmontalvo.com

donmontalvo
Esteemed Contributor III

Or...

--
https://donmontalvo.com

gskibum
Contributor III

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