Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Terminal console hanging in Lion

    Member Since
    Oct 19, 2011
    Posts
    13
    Terminal console hanging in Lion
    I usually just use Terminal to connect to and map shared drives on my office network. I'm not sure what I've done recently, but now whenever I open Terminal, the console just hangs and eventually the entire system locks up.

    There's no $ prompt which is what I usually see when I open Terminal.

    I can eventually use Force Quit to shut it down, but other programs will run extremely slowly or hang until I restart.

    I've tried deleting the plist entry in Library, but that hasn't worked. I've downloaded iTerm and the same thing happens with that.

    I've had Activity Monitor open before I've opened Terminal, but there's no spike in CPU usage - it just registers as not responding.

    Any ideas?

    Thanks.

  2. #2
    Terminal console hanging in Lion
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    did you make any changes to a .profile etc recently?
    mike
    This machine kills fascists
    Got # ? phear the command line!

  3. #3
    Terminal console hanging in Lion

    Member Since
    Oct 19, 2011
    Posts
    13
    Not intentionally - I'm a newbie and I don't know how to do anything in Terminal that I haven't been given clear instructions for

    The only other thing I can think of that I have used Terminal for is to show hidden files (I wanted to find a .htaccess I'd created).

    The lines I used were:
    defaults write com.apple.finder AppleShowAllFiles TRUE
    killall Finder

  4. #4
    Terminal console hanging in Lion
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    Well, that won't do it.

    When terminal is 'hung' what happens if you hit ctrl-c ?

    Do you get a prompt?

    If you do, do a ls -al and show anything that's prefaced with a .

    We'll go from there.
    mike
    This machine kills fascists
    Got # ? phear the command line!

  5. #5
    Terminal console hanging in Lion

    Member Since
    Oct 19, 2011
    Posts
    13
    actually I don't get anything happening.

    ^C came up on the console, and I hit return.
    I tried ls -al and return, and nothing happened.

    Then everything started locking up again.

  6. #6
    Terminal console hanging in Lion
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    Hrm, ok.. so we can't break whatever process is trying to load. Let's try this...


    create a new user, see if the same thing happens in Terminal. If it doesn't it's something about this user.. Then we can start checking the usual culprits.
    mike
    This machine kills fascists
    Got # ? phear the command line!

  7. #7
    Terminal console hanging in Lion

    Member Since
    Oct 19, 2011
    Posts
    13
    here's a screenshot of what I get before everything locks up.
    Attached Images Attached Images

  8. #8
    Terminal console hanging in Lion
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    I was going to suggest that this may be a setting with Terminal but if you're experiencing the same issue with iTerm, it's clear that this is an issue with Bash.

    Move your .bash_profile out of your home directory (or rename it), quit Terminal and restart it. Does that work?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  9. #9
    Terminal console hanging in Lion
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    Yea, that's where I was going. Basically if another user worked.. it's an easy sudo mv /Users/<uname>/.bash_profile /Users/<uname>/bash_profile.foo

    But you know me and the gui I'm not sure how to show hidden files without the CLI method.
    mike
    This machine kills fascists
    Got # ? phear the command line!

  10. #10
    Terminal console hanging in Lion
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    I figure since hidden files were now shown in Finder (as post #3 would suggest), a quick rename/move could be done. I could be wrong though (it doesn't happen much ).
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  11. #11
    Terminal console hanging in Lion
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    Quote Originally Posted by vansmith View Post
    I figure since hidden files were now shown in Finder (as post #3 would suggest), a quick rename/move could be done. I could be wrong though (it doesn't happen much ).
    GAH! You, sir, are absolutely correct

    I hate it when I do that.
    mike
    This machine kills fascists
    Got # ? phear the command line!

  12. #12
    Terminal console hanging in Lion
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Quote Originally Posted by Dysfunction View Post
    GAH! You, sir, are absolutely correct

    I hate it when I do that.
    Uh-oh, more for my ego. This can't be good. Haha.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  13. #13
    Terminal console hanging in Lion

    Member Since
    Oct 19, 2011
    Posts
    13
    Actually guys, hidden files aren't shown! Although I ran that line of code, something didn't work out right, so I still can't see hidden files
    Any idea of how I can get to my bash profile without making that change through Terminal?

    The problem is with my work mac, so I'll try the new user thing on Monday now I'm less busy, but if there's a way to get to the bash profile I'll do that first.
    Thanks again for your help, guys.

  14. #14
    Terminal console hanging in Lion

    Member Since
    Oct 19, 2011
    Posts
    13
    Ok, so I tried moving the bash_profile, but it didn't work Nothing happened. Everything locked up again.

    I also created a new user and opened terminal in that account and it was working fine, so I think your diagnosis is correct! How do I fix it?

  15. #15
    Terminal console hanging in Lion

    Member Since
    Oct 19, 2011
    Posts
    13
    Here's what I get when I try to move the bash_profile in my normal account. Forgot to change <uname> in the first instance
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problems with 10.5.8 - Terminal, Console won't open.
    By ecrotm in forum OS X - Operating System
    Replies: 1
    Last Post: 11-29-2010, 08:04 AM
  2. Problems with 10.5.8 - Terminal, Console won't Open
    By ecrotm in forum OS X - Apps and Games
    Replies: 2
    Last Post: 11-26-2010, 11:19 PM
  3. Console hanging / Terminal strangeness
    By bluemoon222 in forum OS X - Operating System
    Replies: 4
    Last Post: 06-08-2009, 05:26 AM
  4. Direct to Console/Terminal Boot?
    By Alexstre in forum OS X - Operating System
    Replies: 0
    Last Post: 01-21-2009, 02:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •