Command not working.

Discussion in 'macOS' started by baddj, Apr 17, 2009.

  1. baddj macrumors 6502

    Joined:
    Mar 4, 2009
    #1
    Hello

    Okay i am having issues uninstall this thing its from one of the internet usb things and theres a .sh files and it has the command but they do not seem to remove the files i lost the file with it but i got to find it again but the command looked like this

    rm -f -r /Applications/mini

    and there was echo stuff saying if the files got removed and it said it did but the files are still there. i am using osx 10.5.5 is it a bug with that version if its a bug on osx its self how do i report it?
     
  2. edesignuk Moderator emeritus

    edesignuk

    Joined:
    Mar 25, 2002
    Location:
    London, England
    #2
    Maybe it's just me, but that's an incredibly confusing post.

    All you're doing is trying to Trash the folder /Applications/Mini?

    :confused:
     
  3. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #3
    Could you please be more clear in your explanation? All I got from your message was:

    1. You are trying to uninstall something.

    2. You are trying to use a .sh file that contains a command. Is this a shell script?

    3. You are trying to use rm -rf (via the .sh file) to remove whatever it is you're trying to remove.

    4. The files you are trying to remove are still there.

    rm -rf, if successful, does not give you any message saying it was successful, so I disagree with you on that part. Why are you using rm -rf anyways? That's a dangerous command. Why not use a program like AppCleaner or AppDelete (both free) to uninstall an application?
     
  4. baddj thread starter macrumors 6502

    Joined:
    Mar 4, 2009
    #4
    Sorry for that ill try this why to say it.

    The app i have to uninstall it, it has a .sh file. when you run it by command line using sh /desktop/file.sh it runs it and says it uninstalled right. but the files are still there. In the .sh file it is using the command rm -rf but the files are still there so it seems like the rm command is not working.

    also as for the message saying its done its from the .sh files using echo.
     
  5. baddj thread starter macrumors 6502

    Joined:
    Mar 4, 2009
    #5
    Anyone? as if this is a bug it would be nice to know how i can report it. as it removed the other files just not the one in the apps folder and that file was a UNIX executable file.
     
  6. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #6
    Can shell scripts delete themselves? That doesn't seem logical.
     
  7. baddj thread starter macrumors 6502

    Joined:
    Mar 4, 2009
    #7
    The .sh file is called un.sh and its trying to delete a unix file in the apps folder so its not deleting its self but anther shell script but its not working.
     
  8. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #8
    Can you post the contents of the un.sh script so we can see what may be going on?

    Generally for uninstalling apps on Mac though you just drag the app to the trash. It may leave behind some pref files, but not too much. There's also apps like AppCleaner that will search out these pref files for you when you want to get rid of an app.
     
  9. baddj thread starter macrumors 6502

    Joined:
    Mar 4, 2009
    #9
    #Uninstaller of ZTE Datacard Drver in Mac OS X
    #Copyright ZTE Corporation 2006 - 2010
    echo "Welcome to use ZTE Datacard."
    echo "Now, begining to uninstall ZTE Datacard driver......"

    sudo rm -r -f /Library/Modem\ Scripts/ZTE\ USB\ MODEM
    sudo rm -r -f /Application/MiniUI
    sudo rm -r -f /System/Library/Extensions/ZTEUSBCDCACMData.kext
    sudo rm -r -f /System/Library/Extensions/ZTEUSBCDCACMControl.kext

    sudo rm -r -f /System/Library/Extensions.kextcache
    sudo rm -r -f /System/Library/Extensions.mkext
    sudo rm -r -f /System/Library/Caches/com.apple.kernelcaches/
    sudo rm -r -f /Library/Receipts/ZTEDatacardDriverInstaller.pkg

    echo "......ZTE Datacard driver has Uninstalled successfully."

    The only thing that does not get removed is the dam MiniUI
     
  10. edesignuk Moderator emeritus

    edesignuk

    Joined:
    Mar 25, 2002
    Location:
    London, England
    #10
    Maybe I'm missing something. Can't you just drag MiniUI to the Trash?
     
  11. baddj thread starter macrumors 6502

    Joined:
    Mar 4, 2009
    #11
    Okay i can but the thing i am getting at is i want to use the command that is provided by the software. and it seems like there mite be a bug in osx i am not 100% thats why i am asking if it is or not and if it is how do you report it.
     
  12. edesignuk Moderator emeritus

    edesignuk

    Joined:
    Mar 25, 2002
    Location:
    London, England
    #12
    I think you're worrying too much over something that doesn't warrant it.

    Without a unix bod sitting at the computer troubleshooting why the script is failing it's going to be very difficult to say.

    Just trash the folder and be done with it.
     
  13. Objectivist-C macrumors 6502

    Joined:
    Jul 1, 2006
    #13
    There should be some sort of sensible solution to this issue.
     
  14. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #14
    What happens when you run just the one line yourself from Terminal? I modified the command slightly to be verbose in any error messages.
    Code:
    sudo rm -rfv /Application/MiniUI
    I highly doubt it's a bug. As Objectivist-C may be trying to convey, the Mac's application folder ends with an 's.'
     

Share This Page