Menu

#160 Executable files can't launch

1.0
closed
nobody
None
2015-05-14
2015-05-13
Ram Rachum
No

(I'm not sure which msys2 I have, I just downloaded it today.)

I'm trying to launch an executable file by typing its name in the shell, but the shell's giving me bash: manage.py: command not found. I confirmed the file has the executable flag for all users. I confirmed the shebang content, which is /usr/bin/env python, works on its own. But when I type manage.py in the shell I still get an error. It worked in the old Msys.

Any idea why?

Discussion

  • David Macek

    David Macek - 2015-05-14

    Unless your script is in PATH, you need to run it as ./manage.py. Could this be the problem?

     
  • Ram Rachum

    Ram Rachum - 2015-05-14

    Right, this is my mistake. The ticket can be closed.

     
  • David Macek

    David Macek - 2015-05-14
    • status: open --> closed
     
MongoDB Logo MongoDB