F
Florian Lindner
Hello,
I want to compile that small python script:
bastet:/ # cat test.py
#!/usr/bin/python
import sys, os
username = os.getlogin()
print username
os.spawnv(os.P_WAIT, "/root/mailboxmgm.py", sys.argv)
Python 2.3.2 (#1, Oct 12 2003, 14:27:24)
[GCC 3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.bastet:/ # chmod u+x test.pyc
bastet:/ # ./test.pyc
../test.pyc: line 1: syntax error near unexpected token `;'
'/test.pyc: line 1: `;ò
bastet:/ #
What is wrong?
Thanks,
Florian
I want to compile that small python script:
bastet:/ # cat test.py
#!/usr/bin/python
import sys, os
username = os.getlogin()
print username
os.spawnv(os.P_WAIT, "/root/mailboxmgm.py", sys.argv)
Python 2.3.2 (#1, Oct 12 2003, 14:27:24)
[GCC 3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.bastet:/ # chmod u+x test.pyc
bastet:/ # ./test.pyc
../test.pyc: line 1: syntax error near unexpected token `;'
'/test.pyc: line 1: `;ò
bastet:/ #
What is wrong?
Thanks,
Florian