Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Whenever I try to open a new terminal window in iTerm, it closes right away after displaying this:

## exec failed ##
argpath=login error=No such file or directory

Does anyone know what is causing this? Thanks!

Notes

  • The terminal is working fine
  • The default command for new iTerm sessions is set to Login shell
share|improve this question

2 Answers 2

up vote 1 down vote accepted

Not sure why it didn't work with Login shell selected, but I changed it to ⌘ command and invoked bash -l or /bin/bash -l to make it work the same way. Hope this helps anyone else who has the same problem!

share|improve this answer

I had the same error, and the cause was that my PATH variable wasn't set correctly (I had meddled with it). Restoring a proper value using setenv fixed the issue. If you have meddled with your launchd path, you must edit it with launchctl.

In a terminal:

launchctl
setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

You may have to add the path to your /etc/launchd.conf file, and restart your computer as well. See http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x for more information.

share|improve this answer
2  
Please guide us how to set the right value. –  Rob Apr 14 at 9:26
    
Y'a right, here you go!. –  Martin Apr 17 at 8:18
    
thanks Martin! that was my issue –  Cypress Frankenfeld Jun 20 at 21:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.