[Tutor] Permissions Problem

Peter Brown peterabrown at froggy.com.au
Mon Sep 15 19:11:55 EDT 2003

bash-2.05b$ /usr/bin/python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print repr(open('/usr/TP/upload.py', 'rb').read(160))
'#!/usr/bin/python\r\n# upload.py\r\n# program does two main tasks\r\n#
1. Seeks whether two files exist and then process file contents.\r\n#
File YYYMMDD.sm is DDR list'

bash-2.05b$ /usr/TP/upload.py
: bad interpreter: No such file or directory
bash-2.05b$ pwd
bash-2.05b$ ls -al upload.py
-rwxr-xr-x    1 postgres postgres     6945 Sep 16 08:31 upload.py

As you can see everything looks OK. /usr/TP is not home directory

What could be the problem?


More information about the Tutor mailing list