Terminal Command in Snow Leopard

I have GeekTool running that displays some info on my desktop. In Leopard I had this command running that showed running programs memory usage. However, in Snow Leopard, this command no longer works. I'm not great with terminal stuff, so I wasn't sure how to fix it to work in Snow Leopard.
top -orsize -FR -l1 | grep % | grep -v Load | grep -v COMMAND | cut -c 7-8,64-69

such questions are best asked in the Unix forum under OS X technologies. but this appears to be a very simple command so maybe we can answer it here too. what exactly do you want the output to look like and to list? Looks like top usage has changed slightly in SL which is why it's failing. and why do you need it to be in command line form? you say you are not great with terminal. I would suggest you just use Activity monitor then. it lists all the same info in a nice GUI interface.

Similar Messages

  • Cannot run linux commands since Snow Leopard upgrade

    Hi,
    I recently upgraded to Snow Leopard (10.6) from Leopard . . . The issue is that I can no longer run some of linux commands in the same directories where I have run them before. Two cases, chmod and rm
    chmod a+x or chmod 777, I get prompts that indicate that I am not running the command properly? What's that all about?
    The other example is a recursive remove that I use all the time to get rid of backup files . . .
    rm -rf .bak or rm-rf ./bak Neither works anymore and I'm starting to doubt myself . . . when I actually found this issue I was not retyping, just reopening the command shell, and using the arrow to get back to the command(s).
    Help! I am a professional developer, but this is really slowing me down. I can't even sudo anymore.
    Also, what is wheel? When I ls-al, I see the owner is user, but the next column appears to be a group, wheel.

    I suspect, from the examples cited, you just ran them incorrectly. For instance, you have given here
    rm-rf ./bak
    which won't work as there is no space between the command "rm" and the options "-rf" (which are for "recursive" and "force"), so the shell sees the command as being "rm-rf" and there ain't no sech thing. The other remove command is for a file named ".bak" and again I suspect you have no such file, so the command won't work. If you want to remove a particular file the easy way is to just type rm, a space, and then drag the file into the Terminal. You should not need the option to force for a file created by yourself, nor do you need recursive for a single file.
    The chmod commands need something to work on, for instance
    chmod 777 /Users/francine/Desktop/misc/driveicons
    changes the permissions of the folder "driveicons" from drwxr-xr-x to drwxrwxrwx and works just fine. If you have used a command incorrectly, using the arrow keys to move back thru the history won't help, you'll just get your incorrectly used command repeated.
    I think you just don't really understand what it is you have done and are doing. My guess is that you copied some commands you found or someone gave you, without knowing much about what the Terminal is, what a shell is, how the shell works, and so on. That is all more than a little risky, especially if you are using chmod and remove commands.
    And yes, there is a group wheel. However, generally the wheel group has root (system) as the user.
    Francine
    Francine
    Schwieder

  • Installing Make Command without Snow Leopard disk

    I need to have the make command again, and it's not part of the default Snow Leopard install it seems. I've found solutions to re-acquire 'make' if I had the disk, but I no longer do.
    Can someone tell me how to get 'make' installed without the disk? Is there a download somewhere?

    Hi There
    Make along with GCC and other developer tools can be downloaded from http://developer.apple.com/ they all come bundled together in an install package with Xcode.
    Hope this helps
    J.C

  • TS3002 My macbook pro 4,1 runs os x 10.6 but won't run my apple usb superdrive. One forum said that this is due to os x, not hardware. The terminal commands given were for Lion, but don't work in snow leopard. Help!

    My macbook pro 4,1 runs os x 10.6 but won't run my apple usb superdrive. One forum said that this is due to os x, not hardware. The terminal commands given were for Lion, but don't work in snow leopard. Help!

    I was able to get it to work!

  • Rsync command line to optain a bootable snow leopard clone

    Hello,
    I want to do a bootable clone of my snow leopard system on an external hard drive. I am doing this from a shell script as I am doing other things via the script before.
    To accomplish this I am using rsync 3.0.6.
    Here is the command I am using: (from http://www.bombich.com/mactips/image.html )
    sudo rsync -xrlptgoEv --progress --delete / /Volumes/Backup
    But the resulted clone won't boot at all (blue screen) What am I doing wrong ?
    Should I add something to the command line ?
    Also, do you know which folders I should exclude from the backup ?
    Thanks for your answers

    Did you Bless the System Folder after the Clone?
    sudo bless --folder "/Volumes/Clone of Macintosh HD/System/Library/CoreServices"
    I use the following rsync options:
    /usr/local/bin/rsync -aNHAXv --one-file-system --fileflags --force-change --delete
    --exclude='.Spotlight-V100' --exclude='/.fseventsd' --exclude='/Volumes/*'
    --exclude='/private/var/vm/*' --exclude='/private/tmp/*'
    --human-readable --stats --progress "$source" "$destination"
    You may need to compile rsync 3.0.6 as follows (see: also http://discussions.apple.com/message.jspa?messageID=10383609#10383609 )
    Follow these instructions in Terminal on both the client and server to
    download and compile rsync 3.0.?:
    Download and unarchive rsync and its patches
    Move patches directory to rsync-3.0.?
    cd rsync-3.0.?
    Apply patches relevant to preserving Mac OS X metadata
    patch -p1 <patches/fileflags.diff
    patch -p1 <patches/crtimes.diff
    Configure, make, install
    (note: creation times are not preserved in x64, so…)
    ./prepare-source
    CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 ./configure
    CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 make
    sudo make install
    Verify your installation
    rsync --version
    By default, rsync will be installed in /usr/local/bin. If that isn't
    in your path, you will need to call your new version of rsync by its
    absolute path (/usr/local/bin/rsync).
    Also, be aware that rsync 3.0.6 does properly not handle the metadata for the new HFS+ filesystem compression.
    Sub-test: creation time ... ok
    Verifying: hfs-compression ...
    Sub-test: decmpfs xattr ... not preserved
    Sub-test: UF_COMPRESSED flag ... not set
    Sub-test: file contents ... match
    Sub-test: creation time ... ok
    Sub-test: modification time ... ok
    Sub-test: hard link inode ... ok
    Sub-test: hard link decmpfs xattr ... not preserved
    Sub-test: hard link UF_COMPRESSED flag ... not set
    Sub-test: hard link modification time ... ok
    ok
    Verifying: hfs-compression_large ...
    Sub-test: decmpfs xattr ... not preserved
    Sub-test: UF_COMPRESSED flag ... not set
    Sub-test: file contents ... match
    Sub-test: creation time ... ok
    Sub-test: modification time ... ok
    Sub-test: hard link inode ... ok
    Sub-test: hard link decmpfs xattr ... not preserved
    Sub-test: hard link UF_COMPRESSED flag ... not set
    Sub-test: hard link modification time ... ok

  • Install snow leopard from external hard drive-terminal problems!

    hi everybody ,
    i have a big problem :s
    wanted to restore and getting "Restore Failure Could not find any scan information... then i've followed some terminal commands..finished restoring and couldn't boot cause i only find Macintosh HD when i use "alt option" when i restart my macbook pro and even if i go to "startup Disk" i can find my partition of the external hard drive but when i click on it nd do retart it's can't boot ...another thing is tht m having a slow start and it's ask for my Password (i've no problem with password it just doesn't ask me to enter it before and i have internet and server failure)
    Due to terminal commands?? :((
    Plz help :s

    "How to install Snow Leopard from an External Hard Drive"
    * Launch Disk Utility
    * Select the External Firewire/USB device that you want to use as the boot drive for the upgrade
    * Click “Partition” from the menu options
    * Select 1 Partition, then click “Options” below the partition scheme
    * Select the top option for “GUID Partition Table” – it MUST be GUID to be bootable!
    * Click OK to create the GUID partition (this will reformat the drive, ie: all data is lost)
    * Next, click the “Restore” tab within Disk Utility
    * Select your newly made Snow Leopard 10.6 Install DVD image and restore this image to the GUID partition you just created OR…
    * Alternatively, you can select the Snow Leopard Install DVD and restore directly from the DVD to the GUID partition
    * After the restoration is complete, your GUID partition will now be bootable by Mac OS X!
    * Reboot the Mac holding down the “Option” key to pull up the boot loader, select the Snow Leopard install drive you just created rather than your default Mac OS hard drive
    * Install Snow Leopard as usual!
    Hope this helps!

  • Latex, bibtex "command not found" in Snow Leopard

    I recently upgraded to Snow Leopard, and I have MacTex installed (and reinstalled since the OS upgrade). In iTerm (or any other terminal), my computer no longer recognizes bibtex or pdflatex commands. If I type, say, bibtex filename.aux (in the directory containing filename.aux), it returns "-bash: bibtex: command not found").
    I have tried typing the whole path for bibtex, the file I want to process, or both (e.g., usr/texbin/bibtex ~/Documents/writing/filename.aux), but it still doesn't work. Even if I'm in usr/texbin, where bibtex is, it won't recognize bibtex as a command.
    I added a file in etc/paths.d that consists of usr/texbin, and when I type echo $PATH, usr/texbin appears, so that's not the problem, I don't think.
    Any advice that anyone can give to get bibtex working by command line (since I don't know of any other way to use it) would be greatly appreciated. Thanks.

    you might get better help with this if you ask in the Mactex forum rather than here. it certainly sounds like your Mactex install is messed up and I would reinstall it from scratch. uninstall the current distro first.
    http://www.tug.org/mactex/uninstalling.html
    BTW, when you do get it working, FYI, you can invoke bibtex from GUI interface in TexShop. just go to Typeset menu->bibtex. I never do it from command line personally.

  • Firefox hangs on opening requiring force quit I have snow leopard mac It hangs when I try safe mode. I need to know how to remove all traces of firefox on my mac so I can reinstall. I have tried terminal as advised on firefox webpage. Please advise m

    Firefox hangs on opening requiring force quit I have snow leopard Mac It even hangs when I try safe mode. I need to know how to remove all traces of firefox on my mac so I can reinstall. I have tried terminal as advised on firefox webpage. Please advise me
    == This happened ==
    Every time Firefox opened
    == I tried to update firefox add-ons ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    Try a new profile. See [[Recovering important data from an old profile]]

  • How can i install snow leopard on my mac G5 using a command line and booting from an external usb rom, since my disk i have is not a bootable media

    How can i install snow leopard on my mac G5 using a command line and booting from an external usb rom, since my disk i have is not a bootable media

    Hi.
    You simply can't. Snow Leopard is compiled in Intel binary only.
    Good Luck.

  • I recently upgraded from Snow Leopard to Mountain Lion. After the upgrade I was unable to log in to my accounts. After days of frustrating procedures (reinstalling, disk utility clean-up, verification, password resets on terminal window...)

    I think I isolated the problem to a software issue. I called the software company and they directed me to a website with the following set of instructions:
    Website: http://www.thursby.com/after-upgrading-i-cant-login.html
    Instructions:
    Support
    FAQs
    ADmtiMac v5 is not supported on OS X 10.7, Lion. If you have already upgraded to Lion, the incompatibility can cause a situation preventing you from logging in to any account. To remedy this situation, please follow these steps:
    NOTE: If you do not feel comfortable performing these steps, please contact our Support Specialists for further help.
    1. Restart the computer holding down the Command+S keys. This will start the system up in Single User mode.
    2. At the prompt type the following commands (these commands will be listed above the prompt just in case you need to reference them):
       /sbin/fsck -fy    {hit the return key}
      /sbin/mount -uw /   {hit the return key}
    3. Modify the /etc/authorization. At the prompt type
       vi /etc/authorization    {return}
    This opens the file in the vi editor.  Then type:
       /AMHomeDirMechanism   {return}
    This searches for the first occurrence of AMHomeDirMechanism (case-sensitivity is important).
    do this:
    dd     (don't press return, this deletes the line the cursor is on)
    n     (don't press return, this searches for the next occurrence of AMHomeDirMechanism)
    until there are no more occurrences of AMHomeDirMechanism (vi will say "E486: Pattern not found: AMHomeDirMechanism"). Depending on the version, there will be 3 or 4 occurrences.
    Then:
       :wq    {return} (This saves the file).
    (NOTE:  You may see "E138 Can't write ciminfo file $HOME/.viminfo!".  If so, please hit the return key, then continue.)
       exit    {return}
    This last line allows the boot to continue, and you should then be able to log in andINSTALL ADmitMac v6.
    I did this and it did not work. Redoing this several times over, I noticed that the issue is that Drive is "Read-only".  Changing permissions is above my "pay-grade" Any help will be appreciated it. I do not want to wipe out my hard drive and restart anew.

    Addendum: I read on a post here (http://forums.macrumors.com/showthread.php?t=420169) about removing some kext files in order to trick OSX into thinking that there were no FireWire ports.
    I followed the instructions and removed from /System/Library/Extensions/ the following files:
    IOFireWireSerialBusProtocolTransport.kext
    IOFireWireAVC.kext
    IOFireWireFamily.kext
    IOFireWireIP.kext
    IOFireWireSBP2.kext
    I restarted and BAM...Snow Leopard booted crazy fast and the mouse and keyboard worked instantly.
    The System Profiler says "No FireWire ports were found."
    So this tells me that the FW port is probably the culprit and is messing up the installation.
    So how do I hack the Mountain Lion installer and tell it to ignore the FW port, which is obviously quite dead? Or is there something I can do to the Base system that is similar?

  • I used utilities to source my 10.6 snow leopard install disc to my main hardrive, and now when I turn on my computer the apple with the spinning wheel stays on the screen and stuck like that. How do I fix it Help please. I already tried all the commands

    I used utilities to source my 10.6 snow leopard install disc to my main hardrive, and now when I turn on my computer the apple with the spinning wheel stays on the screen and stuck like that. How do I fix it Help please. I already tried all the commands such as Command R, Holding down the Option key, C and holding down shift at the start up but nothing happens.
    initialy All I was trying to do was downgrade 10.7 to 10.6 .

    You have to consider the possibility the hard drive may be dying.    If your data isn't backed up, try one of the tools below:
    https://discussions.apple.com/docs/DOC-1689
    Once you are sure your data is backed up, we can examine other possibilities.  In the meantime call AppleCare for your original installation DVDs.  You may need them.

  • 22" iMac desktop OSX 10.6.6 Snow Leopard and it won't boot. I've tried shift start, option command+P+R. It's stuck at the restart, all I see is the spinning wheel below the apple logo.

    I have a 22" iMac desktop running OSX 10.6  Snow Leopard and it won't boot. I've tried shift start, option command P R. It's stuck at the restart, all I see is the spinning wheel below the apple logo. And I lost my OSX DVD is there any way to fix this? I just did a software update yesterday and have about 20GB left on my Hard drive. The last thing I did was try to install some plugin's for Pro Tools 8, but it wouldnt let me install so I restarted and now I'm screwed. Please Help!
    other specs for my computer: 3.06GHz Intel core 2 duo processor 500 GB Serial ATA hard drive, iSight, magic mouse, wireless mac keyboard
    iPod classic 160GB (Late 2009), Mac OS X (10.6.6)

    You have to consider the possibility the hard drive may be dying.    If your data isn't backed up, try one of the tools below:
    https://discussions.apple.com/docs/DOC-1689
    Once you are sure your data is backed up, we can examine other possibilities.  In the meantime call AppleCare for your original installation DVDs.  You may need them.

  • With the Lion, the copy and paste commands don't work.  So if you choose a photo and right click Copy, this photo can't be pasted in another event.  This used to work with Snow Leopard.

    The copy and paste functions in iPhoto used to work in Snow Leopard, but not with the Lion.  How do I copy and paste photos from one event to another?  What I don't understand is that it used to work with Snow Leopard, and now that the OS has been upgraded to Lion, it doesn't? 

    Instead of copy and paste drag the photo to the new event. Or flag it and use the add flagged photos to selected event command
    LN

  • Force quit command option esc does not work in snow leopard

    When I try to use this command I am sent to front row. I can force quit throught the apple menu. This began when I upgraded to Snow Leopard.

    This might clear up some wierd inputs:
    PRAM RESET
    Zap the PRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • After i have upgraded to snow leopard my copy and paste commands are not working

    hello, i am very frustrated now, it's been two weeks since i have upgraded my mac os to snow leopard but the copy and paste commands are no longer working. i have searched thru the communities but i cannot find something that answers my query. please help as i do not want to resort to downgrading back my OS. thanks in advanced.

    Maybe here  http://support.apple.com/kb/HT3964
    If you do not have a removable battery
    power down, power back up and hold the following keys, left side shift, control, option. Hold these keys till the gears stops spinning, release. Reboot.

Maybe you are looking for

  • Conditional If-THEN statement in PL/SQL

    Hi, I've got a question here. I looked through some other threads, but didn't really see any discussing what I'm trying to achieve. I've got a statement: SELECT DISTINCT AID, ACTIVE, REQUESTOR_NAME, REQUESTOR_EMAIL,BUS_CONTACT ,DEPT,LOCATION,DATE_REQ

  • Error in calling SQL plus program with parameter from Shell script

    This is my Shell script. I am trying to call in the SQL plus program with the parameter and the shell script is registered as a concurrent program. PARAMETERS=`echo $1 |tr -d '\"'` DB_USER_ID=`echo $PARAMETERS|cut -d" " -f3|cut -d"=" -f2` CONN_STRING

  • IPhone 4S...new computer

    Hi! So I just got a new computer and I have already transferred all my music with Home Sharing. However, I also want everything (all apps, contacts, pictures, etc) on my iPhone 4S to be transferred onto my new computer so I don't lose everything when

  • SLD Technical System

    When we create a Technical System in the SLD, it will not accept a fully qualified DNS name, the name seems to truncate at the first period.  (i.e sdn.sap.com turns into sdn). Does anyone know how to work around this issue other than adding an entry

  • Populate Uocdropdownlist dynamically

    Hello experts, I have a requirement to build a custom RCDC UI. It should contain two dropdownlists  1. Regions 2. Organizations We have fixed number of regions for which I have used XMLDatasource. <my:XmlDataSource my:Name="regions"> <Regions> <Count