help with terminal!!!

Discussion in 'macOS' started by jdrm, Jan 16, 2006.

  1. jdrm macrumors newbie

    Joined:
    Jan 16, 2006
    #1
    Please help me...everytime I run a Terminal.app I just get this:
    imacg5s-iMac-g5:~ imacg5$ /Users/imacg5/test/build/Debug/test; exit
    -bash: /Users/imacg5/test/build/Debug/test: No such file or directory
    logout
    [Process exited - exit code 127]

    and then command completed ....please help me to get terminal back to normality
     
  2. Nermal Moderator

    Nermal

    Staff Member

    Joined:
    Dec 7, 2002
    Location:
    New Zealand
    #2
    I think I know what's going on. There's a file in your home directory, I think it's called .bash_profile, that runs every time you open a terminal. It seems that this file has the "exit" command in it - so when you load Terminal, it automatically exits. Basically, you need to delete this file.

    The problem is that the file is hidden. I know that there are tools to enable viewing of hidden files, somebody else should be able to help out there :)
     
  3. grapes911 Moderator emeritus

    grapes911

    Joined:
    Jul 28, 2003
    Location:
    Citizens Bank Park
    #3
    Once this happens, can you press cmd + N for a new window? Is that new window usable?
     
  4. Flying Llama macrumors 6502a

    Flying Llama

    Joined:
    Aug 4, 2004
    Location:
    Los Angeles
    #4
    Go to terminal -> preferences and make sure your window looks like this. :)
     

    Attached Files:

  5. jdrm thread starter macrumors newbie

    Joined:
    Jan 16, 2006
    #5
    Well already got it fixed.....I opened Library/Preferences/com.apple.Terminal.plist and deleted what was under ExecutionStings .....however I still don't get why this happenned....
    cya!
     
  6. piecurus macrumors newbie

    Joined:
    Dec 12, 2007
    #6
    help!!

    Hi...
    I have the same problem and I cannot use the shell.
    I try all the three way that you say. Concerning the last, I haven' t a file com.apple.terminal.plist.
    Someone have an idea?
     

Share This Page