image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old July 31st, 2006, 08:14 AM
Registered User
 
Join Date: Jan 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
gandalf01 is on a distinguished road
Question how to remove an application from command line ?

I am attempting to remove an application (NeoOffice) from several Macs on our network via ARD.

I thought I would have an attempt at using sending a unix shell command from within ARD to remote Macs.
I typed in 'rm -f /Applications/NeoOffice

ARD told me that the command was sucessful but when I did a search on the remote Mac, this application was STILL in the Applications folder.

Does anybody else have any suggestions on how to resolve this ?

Many thanks
Reply With Quote
  #2  
Old July 31st, 2006, 09:08 AM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 9,905
Thanks: 2
Thanked 61 Times in 57 Posts
ElDiabloConCaca has a spectacular aura aboutElDiabloConCaca has a spectacular aura aboutElDiabloConCaca has a spectacular aura about
If the application is a package, it's actually a folder, and you'll also need to specify the "-r" switch ("recursive") for the "rm" command, like so:

Code:
rm -rf /Applications/NeoOffice/
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
  #3  
Old July 31st, 2006, 09:51 AM
Registered User
 
Join Date: Jan 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
gandalf01 is on a distinguished road
Thumbs up How to remove an application from command line ?

Thanks for that. The command executed but got loads of permission errors.

Used same line but with sudo before it so I was prompted for the super user password when the command executed and boom!, the application was removed.

Thanks for your help.
Reply With Quote
  #4  
Old July 31st, 2006, 10:02 AM
Registered User
 
Join Date: Jan 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
gandalf01 is on a distinguished road
Thumbs up How to remove an application from command line ?

This worked on the local machine when using Terminal but when trying the same command via ARD even when you select to run as root, it says its succeeded but its clearly not.
And how can you select to run the script as root from ARD without using a password ??!!!

Very confused!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line ftp? Mac Osxtopus Unix & X11 5 August 27th, 2002 08:55 AM
Command Line? unlearnthetruth Mac OS X System & Mac Software 4 February 20th, 2002 01:33 AM
command line->GUI? macavenger Software Programming & Web Scripting 1 January 27th, 2002 04:43 PM
Icon to start a command line application hugheba Software Programming & Web Scripting 1 June 8th, 2001 05:30 PM
Remove Pepper as .java def application lelereb Mac OS X System & Mac Software 0 April 1st, 2001 11:03 AM


All times are GMT -5. The time now is 01:11 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.